From fad07aa0b2c3918707de211c08c0da9137e2038d Mon Sep 17 00:00:00 2001 From: Grzegorz Grasza Date: Mon, 15 Mar 2021 12:29:20 +0100 Subject: [PATCH] Set ansible_distribution vars for ipaclient This is a workaround, till ipaclient is fixed to use ansible_facts. Change-Id: I22c1185403faaee32fbcf8e57b4cd25c2fbe7307 Closes-Bug: 1919064 --- deployment/ipa/ipaservices-baremetal-ansible.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployment/ipa/ipaservices-baremetal-ansible.yaml b/deployment/ipa/ipaservices-baremetal-ansible.yaml index 09400ddb6e..947e3de44e 100644 --- a/deployment/ipa/ipaservices-baremetal-ansible.yaml +++ b/deployment/ipa/ipaservices-baremetal-ansible.yaml @@ -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