Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Set ansible_distribution vars for ipaclient
Browse files Browse the repository at this point in the history
This is a workaround, till ipaclient is fixed to use
ansible_facts.

Change-Id: I22c1185403faaee32fbcf8e57b4cd25c2fbe7307
Closes-Bug: 1919064
  • Loading branch information
xek committed Mar 15, 2021
1 parent 97016b2 commit fad07aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployment/ipa/ipaservices-baremetal-ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fad07aa

Please sign in to comment.