nftables(role): introduce role for deploying nftables
This commit is contained in:
parent
217b44c3fa
commit
c8fa55fafd
6 changed files with 44 additions and 0 deletions
15
roles/nftables/tasks/main.yaml
Normal file
15
roles/nftables/tasks/main.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
- 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: Restart nftables service
|
Loading…
Add table
Add a link
Reference in a new issue