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

@@ -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"