restart ipset service instead of start and use handler

This commit is contained in:
staticsafe 2020-04-14 21:52:43 -04:00
parent 1430497f5c
commit 02a376b367
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
- name: reload systemd - name: reload systemd
systemd: systemd:
daemon_reload: yes daemon_reload: yes
- name: Restart ipset
systemd:
name: ipset
state: restarted

View File

@ -21,8 +21,5 @@
copy: copy:
src: "{{ ansible_fqdn }}.ipset" src: "{{ ansible_fqdn }}.ipset"
dest: /etc/ipset.conf dest: /etc/ipset.conf
notify:
- name: Start ipset.service - restart ipset
systemd:
name: ipset
state: started