29 lines
606 B
YAML
29 lines
606 B
YAML
---
|
|
# tasks file for nftables
|
|
|
|
- name: Installer le paquet
|
|
become: true
|
|
ansible.builtin.package:
|
|
state: present
|
|
name: nftables
|
|
|
|
- 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
|
|
|
|
- name: Créer le dossier contenant la configuration
|
|
ansible.builtin.file:
|
|
owner: root
|
|
group: root
|
|
mode: u=rwx,g=rx,o=rx
|
|
state: directory
|
|
path: /srv/nftables
|
|
when: nftables_manage_configuration
|
|
become: true
|