17 lines
383 B
YAML
17 lines
383 B
YAML
---
|
|
- name: Configure template
|
|
hosts: default
|
|
become: true
|
|
roles:
|
|
- role: dnf
|
|
when: ansible_facts['os_family'] == "RedHat"
|
|
- auditd
|
|
- fail2ban
|
|
- journald
|
|
- sshd
|
|
- role: timesyncd
|
|
when: ansible_facts['os_family'] == "Ubuntu"
|
|
post_tasks:
|
|
- name: Clean cloud-init
|
|
ansible.builtin.command: cloud-init clean
|
|
changed_when: false
|