Ensure we raise the exception caught _post_validate_environment->_parse_env_kv. Fixes #41322 (#41411)

pull/40353/merge
Matt Martz 8 years ago committed by Brian Coca
parent 5b0bb91c72
commit 3832d04611

@ -280,7 +280,8 @@ class Task(Base, Conditional, Taggable, Become):
except AnsibleUndefinedVariable as e:
if self.action in ('setup', 'gather_facts') and 'ansible_env' in to_native(e):
# ignore as fact gathering sets ansible_env
pass
return
raise
if isinstance(value, list):
for env_item in value:

Loading…
Cancel
Save