Make sure fact is available to find hostname
This is related to the fix for BZ# 1988392. In the fix in https://review.opendev.org/803147, we changed ansible_hostname to use an ansible fact without making sure the fact was available. Change-Id: I75ecbb974e32f8cbec3748cc1eaeea17f6fce7c0
This commit is contained in:
parent
26dee13686
commit
83b627b59f
|
@ -1,6 +1,14 @@
|
|||
---
|
||||
# These tasks apply to all nodes.
|
||||
|
||||
- name: Ensure we get needed facts
|
||||
setup:
|
||||
gather_subset:
|
||||
- '!all'
|
||||
- '!any'
|
||||
- '!min'
|
||||
- network
|
||||
|
||||
# variable for handlers to clean up
|
||||
- name: set facts for handlers to clean up
|
||||
set_fact:
|
||||
|
|
Loading…
Reference in New Issue