cd8ce16d48
This fixes a regression that was caused by switching from copy() to deepcopy() when 'saving' variables before templating. Since HostVars did not implement the __deepcopy__() method, deepcopy returned incorrect results when host vars were present in the variables. Fixes #63940
10 lines
245 B
YAML
10 lines
245 B
YAML
- hosts: h1
|
|
gather_facts: no
|
|
tasks:
|
|
- set_fact:
|
|
templated_foo: "{{ lookup('template', 'template.in') }}"
|
|
|
|
- name: Test that the hostvar was templated correctly
|
|
assert:
|
|
that:
|
|
- templated_foo == "foo\n"
|