Some checks failed
/ Ansible Lint (push) Failing after 3m22s
This should make the role more robust against misconfigurations.
15 lines
343 B
YAML
15 lines
343 B
YAML
- name: ensure nftables is installed
|
|
ansible.builtin.apt:
|
|
name: nftables
|
|
state: present
|
|
become: true
|
|
|
|
- name: deploy nftables configuration
|
|
ansible.builtin.copy:
|
|
content: "{{ nftables__config }}"
|
|
dest: "/etc/nftables.conf"
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
become: true
|
|
notify: Reload nftables service
|