Merge branch 'backup_toggle' of https://github.com/p-rintz/nftables into p-rintz-backup_toggle

This commit is contained in:
Jeremy Gardais 2021-03-12 09:54:06 +01:00
commit 7639f2bbbf
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 20 additions and 7 deletions

View File

@ -585,5 +585,17 @@ nft__fail2ban_service: False
# More verbose output.
nft_debug: False
# .. envvar:: nft_backup_conf [[[
#
# If the nftables config files should be backuped when changed?
# Possible optionsare:
#
# ``True``
# Default. Backup all nftables config files inside the nftables directory.
#
# ``False``
# Configs will not be backuped.
nft_backup_conf: True
# ]]]
# ]]]
# ]]]

View File

@ -81,7 +81,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: nft_enabled|bool
@ -92,7 +92,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: nft_enabled|bool
@ -103,7 +103,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: nft_enabled|bool
@ -115,7 +115,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: nft_enabled|bool
@ -126,7 +126,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: nft_enabled|bool
@ -150,7 +150,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: (nft_enabled|bool and
nft__nat_table_manage|bool)
@ -162,7 +162,7 @@
owner: root
group: root
mode: 0755
backup: yes
backup: "{{ nft_backup_conf }}"
notify: ['Reload nftables service']
when: (nft_enabled|bool and
nft__nat_table_manage|bool)
@ -179,3 +179,4 @@
when: (nft_enabled|bool and
nft_service_manage|bool)
notify: ['Restart nftables service']