Interview Prep/Ansible/Rapid-Fire Commands

How do you read module documentation offline?

BeginnerProductionRapid-Fire Commands
Answer
ansible-doc ansible.builtin.template         # full docs with examples
ansible-doc -s ansible.posix.firewalld       # short parameter snippet
ansible-doc -l | grep -i aws                 # list installed modules
ansible-doc -t lookup -l                     # list lookup plugins
ansible-doc -t inventory amazon.aws.aws_ec2  # inventory plugin options

It documents the exact versions installed in your environment, which matters more than the latest docs online.

All Ansible questions Roadmap: Ansible

More on Rapid-Fire Commands