proxmox-backup: add firewall
This commit is contained in:
parent
f2fbd0c848
commit
11a5ec85b3
|
@ -10,3 +10,9 @@
|
||||||
package:
|
package:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: "'handler' not in ansible_skip_tags"
|
when: "'handler' not in ansible_skip_tags"
|
||||||
|
|
||||||
|
- name: reload nftables
|
||||||
|
service:
|
||||||
|
name: nftables
|
||||||
|
state: reloaded
|
||||||
|
when: "'handler' not in ansible_skip_tags"
|
||||||
|
|
16
roles/proxmox-backup/tasks/firewall.yml
Normal file
16
roles/proxmox-backup/tasks/firewall.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
- name: Install nftables
|
||||||
|
package:
|
||||||
|
name: nftables
|
||||||
|
|
||||||
|
- name: Configure nftables
|
||||||
|
template:
|
||||||
|
dest: /etc/nftables.conf
|
||||||
|
src: nftables.conf.j2
|
||||||
|
mode: 0644
|
||||||
|
notify: reload nftables
|
||||||
|
|
||||||
|
- name: Enable nftables
|
||||||
|
service:
|
||||||
|
name: nftables
|
||||||
|
enabled: true
|
||||||
|
state: started
|
|
@ -83,5 +83,4 @@
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
|
||||||
|
|
||||||
|
- include_tasks: firewall.yml
|
||||||
- meta: flush_handlers
|
|
||||||
|
|
Loading…
Reference in a new issue