Ansible-doc for lookup plugins

I wrote a custom lookup plugin in a collection. When I write a custom module, I can run ansible-doc namespace.collection.module_name to get the documentation, but this doesn’t work for lookup plugins.

I can do ansible-doc -M FULL_PATH_TO_LOOKUP_DIRECTORY plugin_name_without_collection_namespace

But that’s not great.

Is there an alternative syntax I’m overlooking? What is the right way to use ansible-doc to view my collection lookup plugin docs?

Thanks,

@John_Ratliff Hello!

How about below:

ansible-doc namespace.collection.looku_plugin_name -t lookup
2 Likes

Thanks. That’s right in the help for ansible-doc --help. Not sure how I overlooked that.

1 Like

I am glad it was resolved!