alpine: set up firewall
Get services from NetBox and enable SSH unconditionally for now.
This commit is contained in:
parent
b3aff08ce3
commit
fe6c35edf1
3 changed files with 42 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue