alliance-boreale/infrastructure/ansible/roles/firewall_nftables/tasks/main.yml
Dan Allaire ef98fd8a3f Refonte
2026-03-09 18:23:06 -04:00

23 lines
470 B
YAML

---
- name: Gate
ansible.builtin.meta: end_host
when: not firewall_nftables_enabled | bool
- name: Installer nftables
ansible.builtin.apt:
name: nftables
state: present
update_cache: true
- name: Déployer nftables
ansible.builtin.template:
src: nftables.conf.j2
dest: /etc/nftables.conf
mode: '0644'
notify: Reload nftables
- name: Activer nftables
ansible.builtin.systemd:
name: nftables
enabled: true
state: started