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

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.
parent 1ba0391f
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,6 @@ ipaclient_on_master: no ...@@ -11,3 +11,6 @@ ipaclient_on_master: no
ipaclient_no_ntp: no ipaclient_no_ntp: no
ipaclient_no_dns_lookup: no ipaclient_no_dns_lookup: no
ipaclient_ssh_trust_dns: no ipaclient_ssh_trust_dns: no
### packages ###
ipaclient_install_packages: yes
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ ipaclient_packages }}" with_items: "{{ ipaclient_packages }}"
when: ipaclient_install_packages | bool
- name: Install - Include Python2/3 import test - name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml" import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
......
...@@ -37,5 +37,6 @@ ipareplica_enable_compat: no ...@@ -37,5 +37,6 @@ ipareplica_enable_compat: no
ipareplica_ignore_topology_disconnect: no ipareplica_ignore_topology_disconnect: no
ipareplica_ignore_last_of_role: no ipareplica_ignore_last_of_role: no
### additional ### ### additional ###
ipareplica_no_package_install: no ### packages ###
ipareplica_install_packages: yes
ipareplica_no_firewalld: no ipareplica_no_firewalld: no
--- ---
# tasks file for ipareplica # tasks file for ipareplica
- name: Install - Ensure IPA replica packages are installed - block:
package:
name: "{{ item }}" - name: Install - Ensure IPA replica packages are installed
state: present package:
with_items: "{{ ipareplica_packages }}" name: "{{ item }}"
when: not ipareplica_no_package_install | bool state: present
with_items: "{{ ipareplica_packages }}"
- name: Install - Ensure IPA replica packages for dns are installed
package: - name: Install - Ensure IPA replica packages for dns are installed
name: "{{ item }}" package:
state: present name: "{{ item }}"
with_items: "{{ ipareplica_packages_dns }}" state: present
when: not ipareplica_no_package_install | bool and ipareplica_setup_dns | bool with_items: "{{ ipareplica_packages_dns }}"
when: ipareplica_setup_dns | bool
- name: Install - Ensure IPA replica packages for adtrust are installed
package: - name: Install - Ensure IPA replica packages for adtrust are installed
name: "{{ item }}" package:
state: present name: "{{ item }}"
with_items: "{{ ipareplica_packages_adtrust }}" state: present
when: not ipareplica_no_package_install | bool and ipareplica_setup_adtrust | bool with_items: "{{ ipareplica_packages_adtrust }}"
when: ipareplica_setup_adtrust | bool
when: ipareplica_install_packages | bool
- name: Install - Include Python2/3 import test - name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml" import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
......
...@@ -30,6 +30,8 @@ ipaserver_no_dnssec_validation: no ...@@ -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
### packages ###
ipaserver_install_packages: yes
### firewalld ### ### firewalld ###
ipaserver_no_firewalld: no ipaserver_no_firewalld: no
......
--- ---
# tasks file for ipaserver # tasks file for ipaserver
- name: Install - Ensure that IPA server packages are installed - block:
package: - name: Install - Ensure that IPA server packages are installed
name: "{{ item }}" package:
state: present name: "{{ item }}"
with_items: "{{ ipaserver_packages }}" 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 - name: Install - Ensure that IPA server packages for adtrust are installed
package: package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ ipaserver_packages_dns }}" with_items: "{{ ipaserver_packages_adtrust }}"
when: ipaserver_setup_dns | bool when: ipaserver_setup_adtrust | bool
- name: Install - Ensure that IPA server packages for adtrust are installed when: ipaserver_install_packages | bool
package:
name: "{{ item }}"
state: present
with_items: "{{ ipaserver_packages_adtrust }}"
when: ipaserver_setup_adtrust | bool
- name: Install - Include Python2/3 import test - name: Install - Include Python2/3 import test
import_tasks: "{{role_path}}/tasks/python_2_3_test.yml" import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment