mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 13:23:14 +00:00
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:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user