Add legacy fact setting

When we disable inject facts by default, there were some additional
roles that we missed (ipaclient).  We can just set the legacy facts to
prevent issues with missing distribution var updates.

Change-Id: Ib488a6573c035fc8288a4b24461af56d40416c5d
Related-Bug: #1919064
This commit is contained in:
Alex Schultz 2021-03-15 06:38:08 -06:00
parent 97016b2012
commit d8408ebb86
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@
name: Gather facts
strategy: tripleo_free
gather_facts: true
tasks:
- name: Set legacy facts
set_fact:
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'] }}"
tags:
- facts