move order of ipset destroy up

This commit is contained in:
staticsafe 2020-04-14 21:47:08 -04:00
parent 696bf3348f
commit 1430497f5c
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,10 @@
---
# This role deploys ipset rulesets to Ubuntu hosts
- name: Flush any existing ipsets
shell:
cmd: /sbin/ipset destroy
- name: Copy ipset.service
copy:
src: ipset.service
@ -18,10 +22,6 @@
src: "{{ ansible_fqdn }}.ipset"
dest: /etc/ipset.conf
- name: Flush any existing ipsets
shell:
cmd: /sbin/ipset destroy
- name: Start ipset.service
systemd:
name: ipset