-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Ansible for Real-Life Automation
By :

In this section, you will learn how to find suitable modules and documentation to use inside the Ansible playbook.
Find the available modules and details using the ansible-doc
command:
Figure 2.12 – Ansible module list
It will be a long or short list, depending on your type of Ansible installation. (Recall the difference between ansible
, ansible-base
, and ansible-core
, which was explained in the previous chapter.) You can check the total module count that’s available as follows:
[ansible@ansible Chapter-02]$ ansible-doc -l |wc -l 6108
Check the module details by calling the module name with the -s
(--snippet
) argument, as follows:
Figure 2.13 – Ansible module snippet for the dnf module
Alternatively, Check the full details of the module as follows:
Figure 2.14 – Ansible module details for the dnf module
The preceding output shows the example...