what is the best way to find modules in Ansible from the CLI. I can list all the modules but there are quite a few. I have tried grep, but it seems to be not that effective, especially when you are not sure exactly what to search for. Are you able to list module types, like you see online at docs.ansible.com and then list below there?
In my experience grep has been the best way to do it from the CLI. The ansible-doc command can look up things besides modules (for example, with -t inventory for inventory plugins and -t lookup for lookup plugins; -t module just happens to be the default) which is probably why it doesn't have a ton of flags for metadata matching specific categories of modules. Given how many modules are included with Ansible now, it'd be nice if it did have a feature like that. If it does, I'm not aware of it.
In my experience grep has been the best way to do it from the CLI. The ansible-doc command can look up things besides modules (for example, with -t inventory for inventory plugins and -t lookup for lookup plugins; -t module just happens to be the default) which is probably why it doesn't have a ton of flags for metadata matching specific categories of modules. Given how many modules are included with Ansible now, it'd be nice if it did have a feature like that. If it does, I'm not aware of it.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.