Clear cached facts based on the tag as well
Facts gathering comes next after clearing the cached ones. Facts
will be gathered if --tags facts was specified. But cached facts get
cleared always, even w/o that tag.
In DCN deployments that may bring errors that can be avoided with
ansible-playbook-command.sh --tags facts. That is because fact caching
needs to be updated when running outside of the overcloud.
Fix this inconsistency so that the facts never cleared nor gathered
until the facts tag has been used explicitly.
Change-Id: I0ef544a18ec868321ebf51a99051b1ed982cd677
Related-bug: #1896620
Related-bug: #1884654
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
(cherry picked from commit d9ed99b5d9
)
This commit is contained in:
parent
1e0930620c
commit
15ffac7fa0
|
@ -2,6 +2,8 @@
|
||||||
name: Clear cached facts
|
name: Clear cached facts
|
||||||
tasks:
|
tasks:
|
||||||
- meta: clear_facts
|
- meta: clear_facts
|
||||||
|
tags:
|
||||||
|
- facts
|
||||||
|
|
||||||
- hosts: "{{ deploy_source_host }}"
|
- hosts: "{{ deploy_source_host }}"
|
||||||
name: Gather facts from undercloud
|
name: Gather facts from undercloud
|
||||||
|
|
Loading…
Reference in New Issue