mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-23 09:14:43 +00:00
Server: Configure firewalld by default, new switch: ipaserver_no_firewalld
A new section has been added to configure firewalld automatically as the last step of the server installation. A new switch has been added to be able to turn firewalld configuration off: ipaserver_no_firewalld. It defaults to no.
This commit is contained in:
@@ -30,6 +30,8 @@ ipaserver_no_dnssec_validation: no
|
|||||||
### ad trust ###
|
### ad trust ###
|
||||||
ipaserver_enable_compat: no
|
ipaserver_enable_compat: no
|
||||||
ipaserver_setup_ca: yes
|
ipaserver_setup_ca: yes
|
||||||
|
### firewalld ###
|
||||||
|
ipaserver_no_firewalld: no
|
||||||
|
|
||||||
### additional ###
|
### additional ###
|
||||||
ipaserver_allow_missing: [ ]
|
ipaserver_allow_missing: [ ]
|
||||||
|
|||||||
@@ -361,3 +361,22 @@
|
|||||||
path: "/root/.ipa_cache"
|
path: "/root/.ipa_cache"
|
||||||
state: absent
|
state: absent
|
||||||
when: result_ipaserver_enable_ipa.changed
|
when: result_ipaserver_enable_ipa.changed
|
||||||
|
|
||||||
|
- name: Install - Configure firewalld
|
||||||
|
command: >
|
||||||
|
firewall-cmd
|
||||||
|
--permanent
|
||||||
|
--add-service=freeipa-ldap
|
||||||
|
--add-service=freeipa-ldaps
|
||||||
|
{{ "--add-service=dns" if ipaserver_setup_dns | bool else "" }}
|
||||||
|
{{ "--add-service=ntp" if not ipaclient_no_ntp | bool else "" }}
|
||||||
|
when: not ipaserver_no_firewalld | bool
|
||||||
|
|
||||||
|
- name: Install - Configure firewalld runtime
|
||||||
|
command: >
|
||||||
|
firewall-cmd
|
||||||
|
--add-service=freeipa-ldap
|
||||||
|
--add-service=freeipa-ldaps
|
||||||
|
{{ "--add-service=dns" if ipaserver_setup_dns | bool else "" }}
|
||||||
|
{{ "--add-service=ntp" if not ipaclient_no_ntp | bool else "" }}
|
||||||
|
when: not ipaserver_no_firewalld | bool
|
||||||
|
|||||||
Reference in New Issue
Block a user