mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #2623 from willthames/when_set_bug
Prevent premature variable substitution in tasks
This commit is contained in:
@@ -65,7 +65,11 @@ class Play(object):
|
||||
|
||||
self._update_vars_files_for_host(None)
|
||||
|
||||
self._ds = ds = template.template(basedir, ds, self.vars)
|
||||
for key in ds:
|
||||
if key != 'tasks':
|
||||
ds[key] = template.template(basedir, ds[key], self.vars)
|
||||
|
||||
self._ds = ds
|
||||
|
||||
hosts = ds.get('hosts')
|
||||
if hosts is None:
|
||||
|
||||
Reference in New Issue
Block a user