hac/ansible/packer.yml
Ada 5d1011ed41
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add alma linux template generation
2024-03-22 23:47:35 +01:00

17 lines
385 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