All Projects → florianutz → Ubuntu1604 Cis

florianutz / Ubuntu1604 Cis

Licence: mit
Ubuntu CIS Hardening Ansible Role

Projects that are alternatives of or similar to Ubuntu1604 Cis

Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-84.09%)
Mutual labels:  ansible, ansible-role, ubuntu
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+113.64%)
Mutual labels:  ansible, ubuntu, hardening
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (-34.09%)
Mutual labels:  ansible, ubuntu
Docker Ubuntu1804 Ansible
Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.
Stars: ✭ 61 (-30.68%)
Mutual labels:  ansible, ubuntu
Ubuntu Dev Machine Setup
Configure your Ubuntu 20.04 LTS and 20.10 Desktop
Stars: ✭ 63 (-28.41%)
Mutual labels:  ansible, ubuntu
Ansible Kvm
Stars: ✭ 40 (-54.55%)
Mutual labels:  ansible, ansible-role
Ansible Mariadb Galera Cluster
Stars: ✭ 49 (-44.32%)
Mutual labels:  ansible, ubuntu
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (-7.95%)
Mutual labels:  ansible, ubuntu
Ansible Supervisor
Ansible role to set up (the latest or a specific version of) supervisor in Debian-like systems
Stars: ✭ 32 (-63.64%)
Mutual labels:  ansible, ubuntu
Ansible Nas
Build a full-featured home server or NAS replacement with an Ubuntu box and this playbook.
Stars: ✭ 1,198 (+1261.36%)
Mutual labels:  ansible, ubuntu
Molecule Ansible Docker Aws
Example project showing how to test Ansible roles with Molecule using Testinfra and a multiscenario approach with Docker, Vagrant & AWS EC2 as infrastructure providers
Stars: ✭ 72 (-18.18%)
Mutual labels:  ansible, ansible-role
Content
Security automation content in SCAP, OSCAL, Bash, Ansible, and other formats
Stars: ✭ 1,219 (+1285.23%)
Mutual labels:  ansible, hardening
Ansible Phoenix
[Unmaintained] Develop and deploy a Phoenix app using Ansible!
Stars: ✭ 37 (-57.95%)
Mutual labels:  ansible, ansible-role
Ansible Role Android Sdk
Install Android SDK tools and packages, headless, with ansible.
Stars: ✭ 34 (-61.36%)
Mutual labels:  ansible, ansible-role
Ansible Role Visual Studio Code
Ansible role for installing the Visual Studio Code IDE
Stars: ✭ 58 (-34.09%)
Mutual labels:  ansible, ansible-role
Ansible Wsl
Provisioning your Windows from inside of WSL by Ansible
Stars: ✭ 34 (-61.36%)
Mutual labels:  ansible, ubuntu
Ansible In Action
Ansible playbook to deploy your Laravel code base to VPS
Stars: ✭ 61 (-30.68%)
Mutual labels:  ansible, ansible-role
Ansible Haproxy
Ansible role to set up (the latest version of) HAProxy in Ubuntu systems
Stars: ✭ 83 (-5.68%)
Mutual labels:  ansible, ubuntu
Nagios Nrpe Server
Nagios NRPE Server Role for Ansible
Stars: ✭ 27 (-69.32%)
Mutual labels:  ansible, ansible-role
Ansible Restic
Deploy restic backup program
Stars: ✭ 29 (-67.05%)
Mutual labels:  ansible, ansible-role

Ubuntu 16.04 CIS STIG

Build Status Ansible Role

Configure Ubuntu 16.04 machine to be CIS compliant. Level 1 and 2 findings will be corrected by default.

This role will make changes to the system that could break things. This is not an auditing tool but rather a remediation tool to be used after an audit has been conducted.

IMPORTANT INSTALL STEP

If you want to install this via the ansible-galaxy command you'll need to run it like this:

ansible-galaxy install -p roles -r requirements.yml

With this in the file requirements.yml:

- src: https://github.com/florianutz/Ubuntu1604-CIS.git

Based on CIS Ubuntu Benchmark v1.1.0 - 12-28-2017 .

This repo originated from work done by MindPointGroup

Requirements

You should carefully read through the tasks to make sure these changes will not break your systems before running this playbook.

Role Variables

There are many role variables defined in defaults/main.yml. This list shows the most important.

ubuntu1604cis_notauto: Run CIS checks that we typically do NOT want to automate due to the high probability of breaking the system (Default: false)

ubuntu1604cis_section1: CIS - General Settings (Section 1) (Default: true)

ubuntu1604cis_section2: CIS - Services settings (Section 2) (Default: true)

ubuntu1604cis_section3: CIS - Network settings (Section 3) (Default: true)

ubuntu1604cis_section4: CIS - Logging and Auditing settings (Section 4) (Default: true)

ubuntu1604cis_section5: CIS - Access, Authentication and Authorization settings (Section 5) (Default: true)

ubuntu1604cis_section6: CIS - System Maintenance settings (Section 6) (Default: true)

Disable all selinux functions

ubuntu1604cis_selinux_disable: false

Service variables:
These control whether a server should or should not be allowed to continue to run these services
ubuntu1604cis_avahi_server: false  
ubuntu1604cis_cups_server: false  
ubuntu1604cis_dhcp_server: false  
ubuntu1604cis_ldap_server: false  
ubuntu1604cis_telnet_server: false  
ubuntu1604cis_nfs_server: false  
ubuntu1604cis_rpc_server: false  
ubuntu1604cis_ntalk_server: false  
ubuntu1604cis_rsyncd_server: false  
ubuntu1604cis_tftp_server: false  
ubuntu1604cis_rsh_server: false  
ubuntu1604cis_nis_server: false  
ubuntu1604cis_snmp_server: false  
ubuntu1604cis_squid_server: false  
ubuntu1604cis_smb_server: false  
ubuntu1604cis_dovecot_server: false  
ubuntu1604cis_httpd_server: false  
ubuntu1604cis_vsftpd_server: false  
ubuntu1604cis_named_server: false  
ubuntu1604cis_bind: false  
ubuntu1604cis_vsftpd: false  
ubuntu1604cis_httpd: false  
ubuntu1604cis_dovecot: false  
ubuntu1604cis_samba: false  
ubuntu1604cis_squid: false  
ubuntu1604cis_net_snmp: false  
Designate server as a Mail server

ubuntu1604cis_is_mail_server: false

System network parameters (host only OR host and router)

ubuntu1604cis_is_router: false

IPv6 required

ubuntu1604cis_ipv6_required: true

AIDE

ubuntu1604cis_config_aide: true

AIDE cron settings
ubuntu1604cis_aide_cron:
  cron_user: root
  cron_file: /etc/crontab
  aide_job: '/usr/sbin/aide --check'
  aide_minute: 0
  aide_hour: 5
  aide_day: '*'
  aide_month: '*'
  aide_weekday: '*'  
SELinux policy

ubuntu1604cis_selinux_pol: targeted

Set to 'true' if X Windows is needed in your environment

ubuntu1604cis_xwindows_required: no

Client application requirements
ubuntu1604cis_openldap_clients_required: false
ubuntu1604cis_telnet_required: false
ubuntu1604cis_talk_required: false  
ubuntu1604cis_rsh_required: false
ubuntu1604cis_ypbind_required: false
Time Synchronization
ubuntu1604cis_time_synchronization: chrony
ubuntu1604cis_time_Synchronization: ntp

ubuntu1604cis_time_synchronization_servers:
    - 0.pool.ntp.org
    - 1.pool.ntp.org
    - 2.pool.ntp.org
    - 3.pool.ntp.org  
3.4.2 | PATCH | Ensure /etc/hosts.allow is configured
ubuntu1604cis_host_allow:
  - "10.0.0.0/255.0.0.0"  
  - "172.16.0.0/255.240.0.0"  
  - "192.168.0.0/255.255.0.0"    
ubuntu1604cis_firewall: firewalld
ubuntu1604cis_firewall: iptables

Dependencies

Ansible > 2.2

Example Playbook

- name: Harden Server
  hosts: servers
  become: yes

  roles:
    - Ubuntu1604-CIS

Tags

Many tags are available for precise control of what is and is not changed.

Some examples of using tags:

    # Audit and patch the site
    ansible-playbook site.yml --tags="patch"

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].