Replies: 1 comment
-
I see this issue with pre-commit hook. ansible-lint check all files if repo, not commited files. Other linters (yamllint) is working correct |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I tried to execute ansible-linst passing just one playbook but ansible-lint is scanning files not mentioned inside playbook or related files.
The problem is I have some files being written but they aren't included inside the playbook yet, so I think should ignore this files.
If I move the playbook for a esclusive directory, the command executes correctly.
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Ubuntu 20.10
STEPS TO REPRODUCE
The idea here is execute the ansible-lint against the playbook when I have test files (which are invalid ones) inside a role, in this case the 'common' role.
The file mentioned, ssh_keys.yml is not included in common/tasks/main.yml.
Again, works when I copy the playbook for another directory and execute it there.
Desired Behaviour
Actual Behaviour
Please give some details of what is actually happening.
Include a minimum complete verifiable example with:
ansible-playbook --syntax-check playbook
Beta Was this translation helpful? Give feedback.
All reactions