diff --git a/ubuntu/roles/ipset-deploy/tasks/main.yml b/ubuntu/roles/ipset-deploy/tasks/main.yml index 73d99b7..a262022 100644 --- a/ubuntu/roles/ipset-deploy/tasks/main.yml +++ b/ubuntu/roles/ipset-deploy/tasks/main.yml @@ -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