ansible-infra/roles/nftables/tasks/main.yaml
June 3aa146d723
Some checks failed
/ Ansible Lint (push) Failing after 3m22s
nftables(role): reload instead of restart
This should make the role more robust against misconfigurations.
2026-05-06 14:19:38 +02:00

15 lines
343 B
YAML

- name: ensure nftables is installed
ansible.builtin.apt:
name: nftables
state: present
become: true
- name: deploy nftables configuration
ansible.builtin.copy:
content: "{{ nftables__config }}"
dest: "/etc/nftables.conf"
mode: "0644"
owner: root
group: root
become: true
notify: Reload nftables service