2022-10-03 16:15:12 +00:00
|
|
|
---
|
|
|
|
# tasks file for nftables
|
|
|
|
|
|
|
|
- name: Installer le paquet
|
|
|
|
become: true
|
|
|
|
ansible.builtin.package:
|
|
|
|
state: present
|
|
|
|
name: nftables
|
|
|
|
|
2024-01-03 11:56:32 +00:00
|
|
|
- name: Supprimer le dossier contenant la configuration
|
|
|
|
ansible.builtin.file:
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
|
|
|
state: absent
|
|
|
|
path: /srv/nftables
|
|
|
|
when: nftables_renew_configuration
|
|
|
|
become: true
|
|
|
|
|
2022-10-03 16:15:12 +00:00
|
|
|
- name: Créer le dossier contenant la configuration
|
|
|
|
ansible.builtin.file:
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
2024-01-03 11:56:32 +00:00
|
|
|
state: directory
|
2022-10-03 16:15:12 +00:00
|
|
|
path: /srv/nftables
|
2024-05-13 13:18:40 +00:00
|
|
|
when: nftables_manage_configuration
|
2022-10-03 16:15:12 +00:00
|
|
|
become: true
|