feat: Allow to disable configuration

This commit is contained in:
pulsar89.5 2024-05-13 15:18:40 +02:00
parent 128fe14959
commit 9346cdc287
3 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,7 @@
# defaults file for nftables
nftables_renew_configuration: false
nftables_manage_configuration: true
nftables_rules: []
nftables_tables: []

View File

@ -24,4 +24,5 @@
mode: u=rwx,g=rx,o=rx
state: directory
path: /srv/nftables
when: nftables_manage_configuration
become: true

View File

@ -2,7 +2,10 @@
# tasks file for nftables
- name: Importer les tâches d'installation
ansible.builtin.import_tasks: installation.yml
ansible.builtin.import_tasks:
file: installation.yml
- name: Importer les tâches de configuration
ansible.builtin.import_tasks: configuration.yml
ansible.builtin.import_tasks:
file: configuration.yml
when: nftables_manage_configuration