1
0
Fork 0

Use an handler to restart nftables

This commit is contained in:
Daniele Tricoli 2020-10-30 03:11:34 +01:00
parent 1d31e11a9b
commit d0f0c8858e
2 changed files with 8 additions and 6 deletions

View file

@ -0,0 +1,7 @@
---
- name: systemctl restart nftables
systemd:
name: nftables.service
state: restarted
become: "{{ nftables_become }}"
become_user: "{{ nftables_become_user }}"

View file

@ -14,10 +14,5 @@
owner: root
group: root
mode: 0644
- name: start nftables
systemd:
name: nftables.service
state: started
enabled: true
notify: systemctl restart nftables
become: "{{ nftables_become }}"