Add firewalld rules to service roles.

This commit is contained in:
Andreas B. Mundt 2019-11-24 20:53:54 +01:00
parent ea36c9beaf
commit a0ee0fd90d
4 changed files with 61 additions and 3 deletions

View file

@ -75,3 +75,19 @@
dest: /etc/dnsmasq.d/dhcp-send-domain
notify: "restart dnsmasq"
when: dnsmasq.stat.exists
#############################
- name: allow nfs service in firewalld
firewalld:
zone: internal
service: nfs
permanent: yes
state: enabled
when: not run_in_installer|default(false)|bool
## Use firewall-offline-cmd when run during installation:
- name: allow nfs service in firewalld
command: "firewall-offline-cmd --zone=internal --add-service=nfs"
when: run_in_installer|default(false)|bool