use flush instead of destroy in ipset everywhere

This commit is contained in:
staticsafe 2020-04-14 22:07:05 -04:00
parent 92f286bbd6
commit 3abbcbbd9e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: