hac/ansible/packer.yml
Ada f5c29bad3f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add UFW firewall for debian based distro
2024-04-17 11:30:18 +02:00

19 lines
450 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'] == "Debian"
- role: ufw
when: ansible_facts['os_family'] == "Debian"
post_tasks:
- name: Clean cloud-init
ansible.builtin.command: cloud-init clean
changed_when: false