hac/ansible/packer.yml

18 lines
383 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
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