From 995bf8c4760b4dc0ffa5d2f536c5e218d02bc058 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Thu, 6 Jan 2022 22:18:03 +0000 Subject: [PATCH] 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 --- roles/tls_everywhere/tasks/common.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/tls_everywhere/tasks/common.yaml b/roles/tls_everywhere/tasks/common.yaml index a6355018b..9d5b89d78 100644 --- a/roles/tls_everywhere/tasks/common.yaml +++ b/roles/tls_everywhere/tasks/common.yaml @@ -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: