restart ipset service instead of start and use handler
This commit is contained in:
parent
1430497f5c
commit
02a376b367
|
@ -1,3 +1,8 @@
|
|||
- name: reload systemd
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- name: Restart ipset
|
||||
systemd:
|
||||
name: ipset
|
||||
state: restarted
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue