alliance-boreale/ansible/roles/common/tasks/nftables.yml
Dan Allaire bb38f846cd
Some checks are pending
CI / yaml-lint (push) Waiting to run
CI / ssot-export (push) Waiting to run
CI / tests (push) Waiting to run
CI / docs (push) Waiting to run
Premiers rôles ansible et leurs playbooks de déploiement (Phases 1 et 2)
2025-11-01 17:57:46 -04:00

35 lines
730 B
YAML

# Alliance Boréale - Rôle Common - nftables Configuration
# Date: 2025-10-31
---
- name: "📦 Install nftables"
ansible.builtin.apt:
name:
- nftables
- python3-nftables
state: present
- name: "🔥 Deploy nftables base rules"
ansible.builtin.template:
src: nftables.conf.j2
dest: /etc/nftables.conf
owner: root
group: root
mode: '0644'
notify: reload nftables
- name: "✅ Enable and start nftables"
ansible.builtin.systemd:
name: nftables
state: started
enabled: true
- name: "🚫 Ensure iptables is not running"
ansible.builtin.systemd:
name: "{{ item }}"
state: stopped
enabled: false
loop:
- iptables
- ip6tables
failed_when: false