role_nftables/tasks/installation.yml

28 lines
568 B
YAML
Raw Normal View History

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
become: true