include_vars hungs if included file is bad formatted #36235
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
COMPONENT NAME
include_vars
ANSIBLE VERSION
CONFIGURATION
default
OS / ENVIRONMENT
Arch linux latest
SUMMARY
If the included file has a bad format, then include_vars may hung.
STEPS TO REPRODUCE
playbook.yml:
vars.yml
EXPECTED RESULTS
Ansible should exit with error.
ACTUAL RESULTS
Ansible gets stuck while executing the
TASK [include_vars]
task.The text was updated successfully, but these errors were encountered: