-
Notifications
You must be signed in to change notification settings - Fork 37
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
Ansible-review can't parse roles with dependices from custom modules #16
Comments
Yeah, that's a difficult one. I'm really a little unsure as to better do this. Currently the pragmatic way is to add module directories to the |
Yeah, this workaround is acceptable for me. We use only 3 roles which provide custom modules, so it will be not hard. BTW, ansible-lint and ansible-review are awesome tools, thanks a lot! |
The 'linters' tox environment was not running on roles, it was only running on playbooks. This change adds a command to the linters environment to ensure all roles are linted. Since these weren't being linted, there were some problems with them. The first was a warning about usage of the shell module. Both of these usages seemed appropriate, so this patch adds a skip_ansible_lint tag to each task that was failing. The second is a warning "no action detected in task" for zuul modules. This is due to the fact that the linter cannot find the custom module. One option is to set the ANSIBLE_LIBRARY path to point to the zuul ansible library directory[1], but the linter virtualenv does not actually have zuul installed. Instead, we just disable the linter for the failing tasks. This also cleans up a comment in the tox file that was referring to a nonexistent zuul job. [1] willthames/ansible-review#16 Change-Id: Ie49da9a09733b623bb25c5a4c8aa07eacacf4b33
Any plans to fix this? At least if we would have a config option inside |
I'd definitely favourably consider a PR that implemented that idea @ssbarnea |
we also have the ansible.cfg file that does the same task as the environment variable (listing the libraries folder in my case) |
Taking ansible.cfg into consideration would be fantastic. |
Hi!
In my playbook, I use role
spring-boot
, which depends from rolemaven-download
, which provides modulemaven_download
.Ansible-review fails with error:
The text was updated successfully, but these errors were encountered: