From 321f10d5329112ba85afae7854f366c86aa68547 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Mon, 15 Mar 2021 06:38:08 -0600 Subject: [PATCH] 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 (cherry picked from commit d8408ebb86efdda0055ae41c6db350c14772dc6a) --- common/deploy-steps-playbooks-common.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/deploy-steps-playbooks-common.yaml b/common/deploy-steps-playbooks-common.yaml index b09d3b9e9c..373dc60ba5 100644 --- a/common/deploy-steps-playbooks-common.yaml +++ b/common/deploy-steps-playbooks-common.yaml @@ -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