use flush instead of destroy in ipset everywhere
This commit is contained in:
parent
92f286bbd6
commit
3abbcbbd9e
@ -8,7 +8,7 @@ Type=oneshot
|
|||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/sbin/ipset -f /etc/ipset.conf restore
|
ExecStart=/sbin/ipset -f /etc/ipset.conf restore
|
||||||
ExecReload=/sbin/ipset -f /etc/ipset.conf restore
|
ExecReload=/sbin/ipset -f /etc/ipset.conf restore
|
||||||
ExecStop=/sbin/ipset destroy
|
ExecStop=/sbin/ipset flush
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
- name: Flush any existing ipsets
|
- name: Flush any existing ipsets
|
||||||
shell:
|
shell:
|
||||||
cmd: /sbin/ipset destroy
|
cmd: /sbin/ipset flush
|
||||||
|
|
||||||
- name: Copy ipset.service
|
- name: Copy ipset.service
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user