ipa[server,replica,client]: New setting X_install_packages

With these settings for server, replica and client it is possible to skip
package installation. This is for example useful if the packages are already
installed. The settings default to yes

The setting ipareplica_no_package_install has been removed.
This commit is contained in:
Thomas Woerner
2019-02-12 13:22:28 +01:00
parent 1ba0391f22
commit 77d0a1067a
6 changed files with 49 additions and 36 deletions

View File

@@ -11,3 +11,6 @@ ipaclient_on_master: no
ipaclient_no_ntp: no
ipaclient_no_dns_lookup: no
ipaclient_ssh_trust_dns: no
### packages ###
ipaclient_install_packages: yes

View File

@@ -6,6 +6,7 @@
name: "{{ item }}"
state: present
with_items: "{{ ipaclient_packages }}"
when: ipaclient_install_packages | bool
- name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"

View File

@@ -37,5 +37,6 @@ ipareplica_enable_compat: no
ipareplica_ignore_topology_disconnect: no
ipareplica_ignore_last_of_role: no
### additional ###
ipareplica_no_package_install: no
### packages ###
ipareplica_install_packages: yes
ipareplica_no_firewalld: no

View File

@@ -1,26 +1,29 @@
---
# tasks file for ipareplica
- name: Install - Ensure IPA replica packages are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages }}"
when: not ipareplica_no_package_install | bool
- block:
- name: Install - Ensure IPA replica packages for dns are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages_dns }}"
when: not ipareplica_no_package_install | bool and ipareplica_setup_dns | bool
- name: Install - Ensure IPA replica packages are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages }}"
- name: Install - Ensure IPA replica packages for adtrust are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages_adtrust }}"
when: not ipareplica_no_package_install | bool and ipareplica_setup_adtrust | bool
- name: Install - Ensure IPA replica packages for dns are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages_dns }}"
when: ipareplica_setup_dns | bool
- name: Install - Ensure IPA replica packages for adtrust are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipareplica_packages_adtrust }}"
when: ipareplica_setup_adtrust | bool
when: ipareplica_install_packages | bool
- name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"

View File

@@ -30,6 +30,8 @@ ipaserver_no_dnssec_validation: no
### ad trust ###
ipaserver_enable_compat: no
ipaserver_setup_ca: yes
### packages ###
ipaserver_install_packages: yes
### firewalld ###
ipaserver_no_firewalld: no

View File

@@ -1,25 +1,28 @@
---
# tasks file for ipaserver
- name: Install - Ensure that IPA server packages are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages }}"
- block:
- name: Install - Ensure that IPA server packages are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages }}"
- name: Install - Ensure that IPA server packages for dns are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages_dns }}"
when: ipaserver_setup_dns | bool
- name: Install - Ensure that IPA server packages for dns are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages_dns }}"
when: ipaserver_setup_dns | bool
- name: Install - Ensure that IPA server packages for adtrust are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages_adtrust }}"
when: ipaserver_setup_adtrust | bool
- name: Install - Ensure that IPA server packages for adtrust are installed
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages_adtrust }}"
when: ipaserver_setup_adtrust | bool
when: ipaserver_install_packages | bool
- name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"