From 8a9b9622d5225177891bf0fa14b4b37b8c5fb379 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Tue, 16 Mar 2021 09:19:33 +0000 Subject: [PATCH] Use ansible_facts[] instead of fact variables See https://github.com/ansible/ansible/issues/73654 Change-Id: If4aa4ee0d63a046635f7236cf35aa6125133adab --- tests/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.yml b/tests/test.yml index 11a83cd..e398192 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -151,7 +151,7 @@ - four - 4 test_config_yml_hostvars_overrides: - test_hostvar: "{{ ansible_default_ipv4.address }}" + test_hostvar: "{{ ansible_facts['default_ipv4']['address'] }}" test_multiline_strs_yml_overrides: new_multiline_str: | This should not @@ -252,7 +252,7 @@ list_two: - "one" - "two" - test_hostvar: "{{ ansible_default_ipv4.address }}" + test_hostvar: "{{ ansible_facts['default_ipv4']['address'] }}" changed: {} removed: {} diff_content_no_overrides_json: