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-lint 5.0.0 fails to find roles in directory #1336
Comments
With this, ansible-lint runs as expected:
|
I think this bug was fixed by #1361 |
@ssbarnea Version 5.0.1 does not yet work as expected. it does not load the values from the local I have a [defaults]
roles_path = roles_galaxy:roles
I configured ansible loads the values correctly:
|
Same here. I am able to reproduce the same bug under the same conditions of my initial ticket with 5.0.1. |
@ssbarnea Can you reopen this and check? |
I am aware of this bug and there is no need to reopen because we have #1375 -- It is a known issue that ansible.cfg settings are ignored, At this moment if "roles" folder is found at root of repo, is automatically added to the path, but if you have other paths you must continue to define ANSIBLE_ROLES_PATH variable with their locations before calling the linter, at least until we fix the configuration loading. If someone makes a pull request to fix this I will be more than happy to help shipping the fix. |
Summary
Ansible lint 5.0.0 fails to find roles under another directory, e.g.:
Relevant part of ansible.cfg:
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Arch Linux
STEPS TO REPRODUCE
Any directory structure where roles are not under cwd
Desired Behaviour
Roles path is found and correclty set.
Same behavior as 4.3.7 which worked fine.
Follow
ansible.cfg
roles_path definition.Actual Behaviour
Roles path not found.
The text was updated successfully, but these errors were encountered: