mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 20:34:41 +00:00
Merge pull request #161 from abbra/fix-install-packages
Fix install packages in ipaserver and ipareplica roles
This commit is contained in:
@@ -155,6 +155,7 @@ ipaserver_install_packages=no
|
|||||||
ipaserver_setup_firewalld=no
|
ipaserver_setup_firewalld=no
|
||||||
```
|
```
|
||||||
The installation of packages and also the configuration of the firewall are by default enabled.
|
The installation of packages and also the configuration of the firewall are by default enabled.
|
||||||
|
Note that it is not enough to mask systemd firewalld service to skip the firewalld configuration. You need to set the variable to `no`.
|
||||||
|
|
||||||
For more server settings, please have a look at the [server role documentation](roles/ipaserver/README.md).
|
For more server settings, please have a look at the [server role documentation](roles/ipaserver/README.md).
|
||||||
|
|
||||||
@@ -230,6 +231,7 @@ ipareplica_setup_firewalld=no
|
|||||||
```
|
```
|
||||||
|
|
||||||
The installation of packages and also the configuration of the firewall are by default enabled.
|
The installation of packages and also the configuration of the firewall are by default enabled.
|
||||||
|
Note that it is not enough to mask systemd firewalld service to skip the firewalld configuration. You need to set the variable to `no`.
|
||||||
|
|
||||||
For more replica settings, please have a look at the [replica role documentation](roles/ipareplica/README.md).
|
For more replica settings, please have a look at the [replica role documentation](roles/ipareplica/README.md).
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,19 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ipareplica_setup_adtrust | bool
|
when: ipareplica_setup_adtrust | bool
|
||||||
|
|
||||||
|
- name: Install - Ensure that firewall packages installed
|
||||||
|
package:
|
||||||
|
name: "{{ ipareplica_packages_firewalld }}"
|
||||||
|
state: present
|
||||||
|
when: ipareplica_setup_firewalld | bool
|
||||||
|
|
||||||
|
- name: Firewalld service - Ensure that firewalld is running
|
||||||
|
systemd:
|
||||||
|
name: firewalld
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
when: ipareplica_setup_firewalld | bool
|
||||||
|
|
||||||
when: ipareplica_install_packages | bool
|
when: ipareplica_install_packages | bool
|
||||||
|
|
||||||
#- name: Install - Include Python2/3 import test
|
#- name: Install - Include Python2/3 import test
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/RedHat-7.yml
|
# vars/RedHat-7.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/Fedora-25.yml
|
# vars/Fedora-25.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/Fedora-26.yml
|
# vars/Fedora-26.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/Fedora.yml
|
# vars/Fedora.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/Fedora.yml
|
# vars/Fedora.yml
|
||||||
ipareplica_packages: [ "freeipa-server", "python3-libselinux" ]
|
ipareplica_packages: [ "freeipa-server", "python3-libselinux" ]
|
||||||
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/RedHat-7.3.yml
|
# vars/RedHat-7.3.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/RedHat-7.yml
|
# vars/RedHat-7.yml
|
||||||
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
ipareplica_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
ipareplica_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -3,3 +3,4 @@
|
|||||||
ipareplica_packages: [ "@idm:DL1/server" ]
|
ipareplica_packages: [ "@idm:DL1/server" ]
|
||||||
ipareplica_packages_dns: [ "@idm:DL1/dns" ]
|
ipareplica_packages_dns: [ "@idm:DL1/dns" ]
|
||||||
ipareplica_packages_adtrust: [ "@idm:DL1/adtrust" ]
|
ipareplica_packages_adtrust: [ "@idm:DL1/adtrust" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -2,3 +2,4 @@
|
|||||||
ipareplica_packages: [ "freeipa-server" ]
|
ipareplica_packages: [ "freeipa-server" ]
|
||||||
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
ipareplica_packages: [ "freeipa-server", "python3-libselinux" ]
|
ipareplica_packages: [ "freeipa-server", "python3-libselinux" ]
|
||||||
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
ipareplica_packages_dns: [ "freeipa-server-dns" ]
|
||||||
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipareplica_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipareplica_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -19,6 +19,19 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ipaserver_setup_adtrust | bool
|
when: ipaserver_setup_adtrust | bool
|
||||||
|
|
||||||
|
- name: Install - Ensure that firewall packages installed
|
||||||
|
package:
|
||||||
|
name: "{{ ipaserver_packages_firewalld }}"
|
||||||
|
state: present
|
||||||
|
when: ipaserver_setup_firewalld | bool
|
||||||
|
|
||||||
|
- name: Firewalld service - Ensure that firewalld is running
|
||||||
|
systemd:
|
||||||
|
name: firewalld
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
when: ipaserver_setup_firewalld | bool
|
||||||
|
|
||||||
when: ipaserver_install_packages | bool
|
when: ipaserver_install_packages | bool
|
||||||
|
|
||||||
#- name: Install - Include Python2/3 import test
|
#- name: Install - Include Python2/3 import test
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/rhel.yml
|
# vars/rhel.yml
|
||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
ipaserver_packages: [ "freeipa-server", "python3-libselinux" ]
|
ipaserver_packages: [ "freeipa-server", "python3-libselinux" ]
|
||||||
ipaserver_packages_dns: [ "freeipa-server-dns" ]
|
ipaserver_packages_dns: [ "freeipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/rhel.yml
|
# vars/rhel.yml
|
||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
# vars/rhel.yml
|
# vars/rhel.yml
|
||||||
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
ipaserver_packages: [ "ipa-server", "libselinux-python" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "ipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
@@ -3,3 +3,4 @@
|
|||||||
ipaserver_packages: [ "@idm:DL1/server" ]
|
ipaserver_packages: [ "@idm:DL1/server" ]
|
||||||
ipaserver_packages_dns: [ "@idm:DL1/dns" ]
|
ipaserver_packages_dns: [ "@idm:DL1/dns" ]
|
||||||
ipaserver_packages_adtrust: [ "@idm:DL1/adtrust" ]
|
ipaserver_packages_adtrust: [ "@idm:DL1/adtrust" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -2,3 +2,4 @@
|
|||||||
ipaserver_packages: [ "freeipa-server" ]
|
ipaserver_packages: [ "freeipa-server" ]
|
||||||
ipaserver_packages_dns: [ "freeipa-server-dns" ]
|
ipaserver_packages_dns: [ "freeipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
ipaserver_packages: [ "ipa-server", "python3-libselinux" ]
|
ipaserver_packages: [ "ipa-server", "python3-libselinux" ]
|
||||||
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
ipaserver_packages_dns: [ "ipa-server-dns" ]
|
||||||
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
ipaserver_packages_adtrust: [ "freeipa-server-trust-ad" ]
|
||||||
|
ipaserver_packages_firewalld: [ "firewalld" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user