|
|
|
@ -312,6 +312,9 @@ class VariableManager:
|
|
|
|
except AnsibleParserError as e:
|
|
|
|
except AnsibleParserError as e:
|
|
|
|
raise
|
|
|
|
raise
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|
|
|
|
# if include_delegate_to is set to False, we ignore the missing
|
|
|
|
|
|
|
|
# vars file here because we're working on a delegated host
|
|
|
|
|
|
|
|
if include_delegate_to:
|
|
|
|
raise AnsibleFileNotFound("vars file %s was not found" % vars_file_item)
|
|
|
|
raise AnsibleFileNotFound("vars file %s was not found" % vars_file_item)
|
|
|
|
except (UndefinedError, AnsibleUndefinedVariable):
|
|
|
|
except (UndefinedError, AnsibleUndefinedVariable):
|
|
|
|
if host is not None and self._fact_cache.get(host.name, dict()).get('module_setup') and task is not None:
|
|
|
|
if host is not None and self._fact_cache.get(host.name, dict()).get('module_setup') and task is not None:
|
|
|
|
|