mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
b8b206005c
commit
7124504ccf
1 changed files with 5 additions and 1 deletions
|
@ -188,7 +188,11 @@ class VariableManager:
|
||||||
|
|
||||||
if play:
|
if play:
|
||||||
all_vars = self._combine_vars(all_vars, play.get_vars())
|
all_vars = self._combine_vars(all_vars, play.get_vars())
|
||||||
templar = Templar(loader=loader, variables=all_vars)
|
|
||||||
|
# create a set of temporary vars here, which incorporate any extra vars
|
||||||
|
# which may have been specified, so we can properly template vars_files
|
||||||
|
temp_vars = self._combine_vars(all_vars, self.extra_vars)
|
||||||
|
templar = Templar(loader=loader, variables=temp_vars)
|
||||||
|
|
||||||
for vars_file_item in play.get_vars_files():
|
for vars_file_item in play.get_vars_files():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue