From d6bcc5c0fc207d3085a5115f49c7886675fdfb63 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Tue, 13 Feb 2024 20:19:02 +0100 Subject: [PATCH] Add default_ipv4 to required_facts to gather ansible_hostname --- tests/tests_dyndns.yml | 1 + vars/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/tests_dyndns.yml b/tests/tests_dyndns.yml index 746515c..030c679 100644 --- a/tests/tests_dyndns.yml +++ b/tests/tests_dyndns.yml @@ -19,6 +19,7 @@ - name: Ensure that the role configures dynamic dns hosts: all,!ad + gather_facts: false vars: # if we don't have a real AD server, just verify the config # file is written properly diff --git a/vars/main.yml b/vars/main.yml index e7b77cb..c6487a1 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -17,6 +17,7 @@ __ad_integration_required_facts: - distribution_major_version - distribution_version - os_family + - default_ipv4 # the subsets of ansible_facts that need to be gathered in case any of the # facts in required_facts is missing; see the documentation of # the 'gather_subset' parameter of the 'setup' module