roles/common: Always restart nftables service
The "reload" capability only exists on Ubuntu, and it is exactly the same as the "restart" functionality.
This commit is contained in:
parent
98cc3a8c2e
commit
b5ea575d8d
@ -16,5 +16,5 @@
|
||||
- name: reload systemd
|
||||
systemd: daemon_reload=yes
|
||||
|
||||
- name: reload nftables
|
||||
systemd: name=nftables state=reloaded
|
||||
- name: restarted nftables
|
||||
systemd: name=nftables state=restarted
|
||||
|
@ -34,7 +34,7 @@
|
||||
when: ansible_distribution_version is version('20.04', '>=')
|
||||
template: src=nftables.conf.j2 dest=/etc/nftables.conf owner=root mode=0644
|
||||
notify:
|
||||
- reload nftables
|
||||
- restart nftables
|
||||
|
||||
- name: Create /etc/nftables extra config directory
|
||||
when: ansible_distribution_version is version('20.04', '>=')
|
||||
@ -50,7 +50,7 @@
|
||||
- abuseipdb-ipv4.nft
|
||||
- abuseipdb-ipv6.nft
|
||||
notify:
|
||||
- reload nftables
|
||||
- restart nftables
|
||||
|
||||
- name: Copy firewalld public zone file
|
||||
when: ansible_distribution_version is version('18.04', '<=')
|
||||
|
Loading…
Reference in New Issue
Block a user