-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
Plugins from collection not shown in ansible-doc #56226
Comments
you can use
|
^ since that comment was left, the folder structure changed. Even those paths, I don't think, would be representative of how collections are today. So start with that modification. This method you gave with
Output:
After much experimentation I found this:
This works. This is very important syntax, because otherwise you can't test if you are afflicted by the bug #59226 or not. You can't even know because you can't use it in the first place. To test that the above command works, I modified the This seems to be a valid workaround for present-day Let me fully clarify the details of that structure for anyone looking for instructions on how to do this. The contents of The file
This is all specific to the tree structure I posted, and constitutes an example of using docs & doc fragments with a collection. |
Let me directly state expectations here:
|
The issue is 'listing' ( The expectation of using shorthand on configured collection paths should not work as there is no way to disambiguate conflicts, i.e tower_org module in 'alan' collection vs the one in 'chris' collection.
|
the collection list command was merged, as a spiritual successor to this. Otherwise I'm still completely unaware of how to use the doc command to list content in a collection. Didn't think that was intended to be supported. |
SUMMARY
The CLI command
ansible-doc
is not showing plugins which are active, if those plugins come from a collection.ISSUE TYPE
COMPONENT NAME
lib/ansible/cli/doc.py
ANSIBLE VERSION
current
devel
branchCONFIGURATION
OS / ENVIRONMENT
N/A, control machine, Mac OS
STEPS TO REPRODUCE
File structure used is found in source control at:
https://github.com/chrismeyersfsu/ansible-examples/tree/master/collections_hello_world
You need to be in that exact folder to reproduce these steps.
the inventory
my_inventory.yml
has contents:run command:
EXPECTED RESULTS
Verify functionality of the playbook via
ansible-playbook -i my_inventory.yml main.yml
. In output, note:This demonstrates that the plugin is being used. Because this inventory plugin is active inside of this folder, I expect to obtain an entry corresponding to the plugin. Like:
The text "Add a single host" is in the documentation
ACTUAL RESULTS
There is no mention of this plugin in the output.
The text was updated successfully, but these errors were encountered: