2024-03-20 13:45:58 +01:00
|
|
|
---
|
|
|
|
- name: Configure template
|
|
|
|
hosts: default
|
|
|
|
become: true
|
|
|
|
roles:
|
2024-03-22 23:47:35 +01:00
|
|
|
- role: dnf
|
|
|
|
when: ansible_facts['os_family'] == "RedHat"
|
2024-03-20 13:45:58 +01:00
|
|
|
- auditd
|
|
|
|
- fail2ban
|
|
|
|
- journald
|
|
|
|
- sshd
|
2024-03-22 23:47:35 +01:00
|
|
|
- role: timesyncd
|
2024-04-17 11:19:14 +02:00
|
|
|
when: ansible_facts['os_family'] == "Debian"
|
|
|
|
- role: ufw
|
|
|
|
when: ansible_facts['os_family'] == "Debian"
|
2024-03-20 13:45:58 +01:00
|
|
|
post_tasks:
|
|
|
|
- name: Clean cloud-init
|
2024-03-24 22:12:56 +01:00
|
|
|
ansible.builtin.command: cloud-init clean
|
2024-03-20 13:45:58 +01:00
|
|
|
changed_when: false
|