infrastructure/ansible/roles/ingress/tasks/firewall.yml

18 lines
316 B
YAML
Raw Permalink Normal View History

- name: Install nftables
package:
name: nftables
- name: Copy firewall config
template:
src: files/nftables.conf
dest: /etc/nftables.conf
validate: nft -c -f %s
mode: "644"
2023-11-03 18:06:36 +00:00
notify: reload nftables
- name: Enable nftables
service:
name: nftables
enabled: true
state: started