You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
475 B
25 lines
475 B
- name: ensure nftables is installed
|
|
package:
|
|
name: nftables
|
|
state: installed
|
|
become: yes
|
|
|
|
- name: deploy nftables ruleset
|
|
template:
|
|
src: nftables.conf
|
|
dest: "{{ nftables_ruleset_path }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0600"
|
|
notify: reload_nftables
|
|
become: yes
|
|
|
|
- name: ensure nftables is enabled and started
|
|
service:
|
|
name: nftables
|
|
enabled: true
|
|
state: started
|
|
become: yes
|
|
|
|
- name: flush handlers
|
|
meta: flush_handlers
|
|
|