From 40e2bf5dd1d9063c15573bf7b8a1bcdb81fc1035 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Mon, 22 Jun 2020 15:09:02 -0600 Subject: [PATCH] Always clear cached facts first Because you could be running against different clouds or hosts, we need to always clear the facts at the start of the deployment playbook to ensure we aren't using incorrectly cached facts. That being said, the caching mechanism should persist between the plays in the overall deployment. Change-Id: I5992edf43bf1995eebdf401c6bd886e77e528695 Closes-Bug: #1884654 (cherry picked from commit 1f9942fd755a168f8a9b75afa09e8af7027d61d4) --- common/deploy-steps-playbooks-common.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/deploy-steps-playbooks-common.yaml b/common/deploy-steps-playbooks-common.yaml index 93bbcbb4e9..eb603e4b5c 100644 --- a/common/deploy-steps-playbooks-common.yaml +++ b/common/deploy-steps-playbooks-common.yaml @@ -1,3 +1,8 @@ +- hosts: all + name: Clear cached facts + tasks: + - meta: clear_facts + - hosts: "{{ deploy_source_host }}" name: Gather facts from undercloud gather_facts: yes