Configure Ubuntu 22.04 machine to be GSA compliant. Level 1 and 2 findings will be corrected by default. It's based on GSA Ubuntu 22.04 Benchmark.
There are many role variables defined in defaults/main.yml.
- General Configurations (Section 1)
- Services Configurations (Section 2)
- Network Configurations (Section 3)
- Logging and Auditing Configurations (Section 4)
- Access, Authentication and Authorization Configurations (Section 5)
- System Maintenance Configurations (Section 6)
Above high level configurations and other fine-grained configurations can be enabled/disabled using variabled defined in in defaults/main.yml.
- Install and configure AIDE
- Install and configure NTP
- Configure the /etc/group wheel configurations
Other settings and services are listed. Please review to ensure they meet your organizational requirements.
Ansible >= 2.10
---
- name: Harden Server
hosts: all
become: yes
roles:
- ansible-os-ubuntu22.04
ansible-playbook playbook.yml --connection=local