work together with iptables
This commit is contained in:
parent
9e03ccc641
commit
0b2d669ce8
1 changed files with 8 additions and 7 deletions
|
|
@ -1,17 +1,18 @@
|
||||||
|
- name: ensure nft is installed
|
||||||
|
apt:
|
||||||
|
pkg:
|
||||||
|
- nftables
|
||||||
|
notify:
|
||||||
|
- reload nftables
|
||||||
|
|
||||||
- name: remove legacy firewalls
|
- name: remove legacy firewalls
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- ferm
|
- ferm
|
||||||
- iptables
|
# - iptables
|
||||||
purge: True
|
purge: True
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: ensure nft is installed
|
|
||||||
package:
|
|
||||||
name: nftables
|
|
||||||
notify:
|
|
||||||
- reload nftables
|
|
||||||
|
|
||||||
- name: setup firewall directories
|
- name: setup firewall directories
|
||||||
file:
|
file:
|
||||||
path: /etc/nftables.d
|
path: /etc/nftables.d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue