This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Invalid task file syntax in imported tasks prevents all non-playbook checks from running #2057
Labels
You can continue the conversation there. Go to discussion →
Summary
If there's an invalid task file anywhere in the list of files that
ansible-lint
checks, it silently fails to do any linting besides syntax-check on playbooks.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Tested on MacOS Monterey and Debian 10
STEPS TO REPRODUCE
Put invalid syntax in an imported/included file and observe with verbose logging that only playbooks are linted.
See https://github.com/wbh1/ansible-lint-test for a working example.
Desired Behavior
ansible-lint
alerts me to the the invalid syntax. This is what happens if the invalid block is intasks/main.yml
, but does not happen on imported tasks.This is what happens when the invalid syntax block is commented out:
Actual Behavior
minimum complete verifiable example: https://github.com/wbh1/ansible-lint-test
The text was updated successfully, but these errors were encountered: