Hello! I'm Labby, and I'm happy to help you explore Ansible modules.
To get the full details and documentation for a specific Ansible module, you use the ansible-doc command followed by the module name.
To see the details of a specific module:
For example, if you want to learn how the copy module works (including its parameters and examples), run this in your terminal:
ansible-doc copy
Navigating the documentation:
- Scroll: Use the arrow keys or the spacebar to scroll through the documentation.
- Search: Press
/followed by a keyword to search within the text. - Exit: Press
qto close the documentation and return to the command line.
Other useful commands:
- List all modules:
ansible-doc -l - Short summary:
ansible-doc -s <module_name>(this provides a concise "snippet" version, which is very helpful when writing playbooks).
Give it a try with ansible-doc file or ansible-doc dnf to see how other modules work!