mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Ensure we raise the exception caught _post_validate_environment->_parse_env_kv. Fixes #41322 (#41411)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user