-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Role check executes ansible code #3277
Comments
Found the same issue ... please fix it soon! Linter should never execute the actual stuff – and never remark missing given become tokens ;)
|
I reverted to 6.14.2, waiting for a fix |
6.14.5 has a bug that breaks role validation: ansible/ansible-lint#3277
FTR, it comes from this commit: 502ea61 Which is not even listed in the changelog? https://github.com/ansible/ansible-lint/releases/tag/v6.14.5 |
fwiw, we've gotten a report in ansible/ansible for this at ansible/ansible#80506 Ultimately core does not support the ability to syntax check just an individual role. To syntax check an individual role would require creating a temporary playbook that only invokes that single role, and the syntax check the temporary playbook. |
@sivel Last time I checked about this I was told that this was not accidental!... I do not remember exactly who told me, but it was someone from core team. I guess that we would be forced to use the temp playbook approach which has lots of problems, especially for linting in real-time (IDE). There are repositories with >100 roles, creating temporary playbooks for each of them, would have notable performance impact. I yanked yesterday release, v6.14.5, so we can fix it today. |
Summary
ansible-lint is executing the code in my roles
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Desired Behavior
syntax check as usual, no ansible real commands
Actual Behavior
Ansible tasks are run 😱
Imagine I have recurse deletion on my home in a playbook.
The text was updated successfully, but these errors were encountered: