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
systemd:
daemon_reload: yes
- name: Restart ipset
systemd:
name: ipset
state: restarted

View File

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