roles/common: Don't overwrite spamhaus nft sets
The ones in this repo are only placeholders that get updated by the update-spamhaus-nftables service, so we shouldn't overwrite them if they exist.
This commit is contained in:
parent
d3922e7878
commit
a74d6dfc08
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
- name: Copy extra nftables configuration files
|
- name: Copy extra nftables configuration files
|
||||||
when: ansible_distribution_major_version is version('11', '>=')
|
when: ansible_distribution_major_version is version('11', '>=')
|
||||||
copy: src={{ item }} dest=/etc/nftables/{{ item }} owner=root group=root mode=0644
|
copy: src={{ item }} dest=/etc/nftables/{{ item }} owner=root group=root mode=0644 force=no
|
||||||
loop:
|
loop:
|
||||||
- spamhaus-ipv4.nft
|
- spamhaus-ipv4.nft
|
||||||
- spamhaus-ipv6.nft
|
- spamhaus-ipv6.nft
|
||||||
|
Loading…
Reference in New Issue
Block a user