infrastructure/ansible/roles/ingress/tasks/firewall.yml
Jake Howard d5a7a61171
All checks were successful
/ terraform (push) Successful in 38s
/ ansible (push) Successful in 1m30s
Remove unnecessary use of become from some roles
This should make execution much faster
2024-09-09 17:09:03 +01:00

17 lines
316 B
YAML

- 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"
notify: reload nftables
- name: Enable nftables
service:
name: nftables
enabled: true
state: started