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-galaxy list is not listing certain valid roles #67365
Comments
Testing in a fresh Ubuntu environment:
So, same behavior as on my Mac environment; I even tried putting in the path directly (instead of |
Interesting, using
Basically, for the local role(s) it's looking for the file |
Well the plot thickens...
So maybe this is just an issue with roles named |
That was a fun rabbit hole—I can confirm that, as long as the role name does not consist of the word Tested the following names:
|
Debugging with strace:
|
I tried inside the directory |
According to @jctanner it seems the issue is in this bit of code: https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/role.py#L69-L71 |
SUMMARY
I am trying to see what roles Ansible will pick up from a given roles directory, and it seems like it's only picking up roles that I've downloaded from Galaxy, not any other roles (like custom ones I've created via
ansible-galaxy init
).ISSUE TYPE
COMPONENT NAME
ansible-galaxy
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS Catalina, Ansible installed via
pip3
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect the new
testing
role would be listed.ACTUAL RESULTS
The new
testing
role is not listed.ADDITIONAL INFO
After failing the above scenario, I installed a role from Galaxy, and it was listed:
The text was updated successfully, but these errors were encountered: