You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
420 B
YAML
16 lines
420 B
YAML
- name: Install nftables
|
|
package:
|
|
name:
|
|
- nftables
|
|
|
|
- name: Create /etc/nftables/ansible-managed
|
|
file:
|
|
path: /etc/nftables/ansible-managed
|
|
state: directory
|
|
|
|
- name: Include files in /etc/nftables/ansible-managed/ from /etc/nftables.conf
|
|
blockinfile:
|
|
path: /etc/nftables.conf
|
|
marker: "# {mark} ANSIBLE MANAGED BLOCK - nftables"
|
|
content: 'include "/etc/nftables/ansible-managed/*.nft"'
|