Merge "Set ansible_distribution vars for ipaclient"

This commit is contained in:
Zuul 2021-03-16 19:28:58 +00:00 committed by Gerrit Code Review
commit 5ae932bc93

View File

@ -156,6 +156,13 @@ outputs:
ipaclient_hostname: "{{ hostvars[outer_item.0]['fqdn_canonical'] }}"
ipaclients:
- "{{ outer_item.0 }}"
#NOTE(xek): The following is a workaround till ipaclient is fixed to use ansible_facts
# see: https://github.com/freeipa/ansible-freeipa/pull/517
ansible_distribution: "{{ ansible_facts['distribution'] }}"
ansible_distribution_major_version: "{{ ansible_facts['distribution_major_version'] }}"
ansible_distribution_release: "{{ ansible_facts['distribution_release'] }}"
ansible_distribution_version: "{{ ansible_facts['distribution_version'] }}"
ansible_os_family: "{{ ansible_facts['os_family'] }}"
-
if:
- idm_server_provided