alpine: set up firewall

Get services from NetBox and enable SSH unconditionally for now.
This commit is contained in:
Timotej Lazar 2024-06-05 15:37:45 +02:00
parent b3aff08ce3
commit fe6c35edf1
3 changed files with 42 additions and 0 deletions

View file

@ -30,6 +30,18 @@
value: 'prohibit-password'
notify: reload sshd
- name: Set up firewall
template:
dest: /etc/nftables.d/local.nft
src: local.nft.j2
notify: reload nftables
- name: Enable firewall
service:
name: nftables
enabled: yes
state: started
- name: Enable QEMU guest agent
when: is_virtual
block: