hac/ansible/packer.yml

18 lines
385 B
YAML
Raw Normal View History

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
when: ansible_facts['os_family'] == "Ubuntu"
2024-03-20 13:45:58 +01:00
post_tasks:
- name: Clean cloud-init
ansible.builtin.command: "cloud-init clean"
changed_when: false