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

@ -116,5 +116,18 @@
bind_pw: "{{ ldap_admin_pwd }}"
when: foo_pwd is defined and foo_pwd | length > 0
## ldapaddgroup tom
## ldapadduser tom tom
#############################
- name: allow ldap service in firewalld
firewalld:
zone: internal
service: ldap
permanent: yes
state: enabled
when: not run_in_installer|default(false)|bool
## Use firewall-offline-cmd when run during installation:
- name: allow ldap service in firewalld
command: "firewall-offline-cmd --zone=internal --add-service=ldap"
when: run_in_installer|default(false)|bool