Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654 Change-Id: If4aa4ee0d63a046635f7236cf35aa6125133adab
This commit is contained in:
parent
331d8932aa
commit
8a9b9622d5
@ -151,7 +151,7 @@
|
|||||||
- four
|
- four
|
||||||
- 4
|
- 4
|
||||||
test_config_yml_hostvars_overrides:
|
test_config_yml_hostvars_overrides:
|
||||||
test_hostvar: "{{ ansible_default_ipv4.address }}"
|
test_hostvar: "{{ ansible_facts['default_ipv4']['address'] }}"
|
||||||
test_multiline_strs_yml_overrides:
|
test_multiline_strs_yml_overrides:
|
||||||
new_multiline_str: |
|
new_multiline_str: |
|
||||||
This should not
|
This should not
|
||||||
@ -252,7 +252,7 @@
|
|||||||
list_two:
|
list_two:
|
||||||
- "one"
|
- "one"
|
||||||
- "two"
|
- "two"
|
||||||
test_hostvar: "{{ ansible_default_ipv4.address }}"
|
test_hostvar: "{{ ansible_facts['default_ipv4']['address'] }}"
|
||||||
changed: {}
|
changed: {}
|
||||||
removed: {}
|
removed: {}
|
||||||
diff_content_no_overrides_json:
|
diff_content_no_overrides_json:
|
||||||
|
Loading…
Reference in New Issue
Block a user