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
|
|
|
|
|
|
|
|
- name: Créer le dossier contenant la configuration
|
|
|
|
ansible.builtin.file:
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rwx,g=rx,o=rx
|
2023-12-28 16:39:20 +00:00
|
|
|
state: "{{ item }}"
|
2022-10-03 16:15:12 +00:00
|
|
|
path: /srv/nftables
|
|
|
|
become: true
|
2023-12-28 16:39:20 +00:00
|
|
|
loop:
|
|
|
|
- absent
|
|
|
|
- directory
|