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:
Ade Lee 2022-01-06 22:18:03 +00:00
parent 6cbeeb4c2c
commit 995bf8c476
1 changed files with 8 additions and 0 deletions

View File

@ -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: