[Ansible] – How to get the module documentation by command line? How to get a help to use the modules?

Use the following command to check all modules

$ ansible-doc -l

`Screen Shot 2018-10-28 at 15.09.46.png

Use the following command to check the documentation of some specific module.

ansible-doc <module_name>

Following an example.

Screen Shot 2018-10-28 at 15.11.55

Following some useful documentation references.

Leave a comment