[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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s