Skip to content
Snippets Groups Projects
Commit 4f897d37 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

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.
parent 3e03d7f4
Branches
Tags
No related merge requests found
......@@ -30,6 +30,8 @@ ipaserver_no_dnssec_validation: no
### ad trust ###
ipaserver_enable_compat: no
ipaserver_setup_ca: yes
### firewalld ###
ipaserver_no_firewalld: no
### additional ###
ipaserver_allow_missing: [ ]
......
......@@ -361,3 +361,22 @@
path: "/root/.ipa_cache"
state: absent
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment