role_nftables/tasks/installation.yml

21 lines
375 B
YAML

---
# 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
state: "{{ item }}"
path: /srv/nftables
become: true
loop:
- absent
- directory