Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.38 KB

lab02.0_documentation.adoc

File metadata and controls

60 lines (47 loc) · 1.38 KB

LAB02 - Documentation and Finding Information

Task 1

  • Print out a list of all ansible modules in your terminal

Note

Don’t be rattled about the massive amount of modules you’ll see in your terminal.

  • Print out information about the ansible module file in your terminal

TASK 2

  • Find the official online documentation of ansible in your browser

  • Visit the module index (e.g. list of all modules) in the online documentation

  • Use the search field in the upper left of the webpage and also use the search field in the lower right

TASK 3 (Advanced)

  • Find documentation provided by the ansible-doc yum package, but not provided by the command itself

  • Find documentation about jinja2 on the controller

Solutions

Solution 1
$ ansible-doc -l
$ ansible-doc file
$ ansible-doc -s file
Solution 2
Solution 3

One way to find a list of provided documentation is to search for files installed with the ansible-doc package:

$ sudo yum install -y yum-utils # (if needed, this package provides the repoquery command)
$ repoquery ansible-doc -l

You can also search for files in /usr/share/doc:

$ ll -R /usr/share/doc/ | grep jinja2