Add firewalld rules to service roles.
This commit is contained in:
parent
ea36c9beaf
commit
a0ee0fd90d
4 changed files with 61 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue