This commit is contained in:
Jonas Forsberg 2021-10-14 13:58:28 +02:00
parent 5f7d7698e8
commit d7f1fc24ed

View File

@ -65,3 +65,14 @@ Configure firewalld for vlan networks:
- https - https
- dns - dns
- ntp - ntp
Add forwarding on Internal zone:
cmd.run:
- name: firewall-cmd --permanent --zone=internal --add-forward
- unless: bash -c "if [[ \"$(firewall-cmd --zone=internal --list-all | sed -n 's/.* forward. \(.*\)$/\1/p')\" = \"yes\" ]]; then exit 0; else exit 1;fi"
Reload firewalld:
cmd.run:
- name: firewall-cmd --reload
- onchanges:
- cmd: Add forwarding on Internal zone