mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
converted error on play var initialization into warning with more information
This commit is contained in:
parent
17e086fe8c
commit
0d1e2e74a1
2 changed files with 10 additions and 7 deletions
|
@ -119,7 +119,11 @@ class Play(object):
|
|||
temp_vars = utils.combine_vars(self.vars, self.vars_file_vars)
|
||||
temp_vars = utils.combine_vars(temp_vars, self.playbook.extra_vars)
|
||||
|
||||
ds = template(basedir, ds, temp_vars)
|
||||
try:
|
||||
ds = template(basedir, ds, temp_vars)
|
||||
except errors.AnsibleError, e:
|
||||
utils.warning("non fatal error while trying to template play variables: %s" % (str(e)))
|
||||
|
||||
ds['tasks'] = _tasks
|
||||
ds['handlers'] = _handlers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue