role_nftables/tasks/installation.yml

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