Add Debian 13 and Ubuntu 26.04 CIS-inspired hardening playbook
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Gather service facts
|
||||
ansible.builtin.service_facts:
|
||||
|
||||
- name: Enable chrony service when present and enabled
|
||||
ansible.builtin.systemd:
|
||||
name: chrony
|
||||
enabled: true
|
||||
state: started
|
||||
when:
|
||||
- cis_enable_chrony | bool
|
||||
- "'chrony.service' in ansible_facts.services"
|
||||
|
||||
- name: Enable rsyslog service when present and enabled
|
||||
ansible.builtin.systemd:
|
||||
name: rsyslog
|
||||
enabled: true
|
||||
state: started
|
||||
when:
|
||||
- cis_enable_rsyslog | bool
|
||||
- "'rsyslog.service' in ansible_facts.services"
|
||||
|
||||
- name: Enable auditd service when present and enabled
|
||||
ansible.builtin.systemd:
|
||||
name: auditd
|
||||
enabled: true
|
||||
state: started
|
||||
when:
|
||||
- cis_install_auditd | bool
|
||||
- "'auditd.service' in ansible_facts.services"
|
||||
Reference in New Issue
Block a user