What is `ansible-console`?
BeginnerConceptVault, Privilege Escalation and Error Handling
Answer
An interactive REPL where you run modules against an inventory group without retyping the pattern or options each time.
ansible-console -i inventory/ web --become
web (3)[f:5]# ping
web (3)[f:5]# service name=nginx state=restarted
web (3)[f:5]# forks 20
Handy when working through an incident on a group of hosts. It has tab completion and keeps the forks and become settings for the session.
More on Vault, Privilege Escalation and Error Handling
What is Ansible Vault?BeginnerWhich `ansible-vault` commands do you use day to day?BeginnerHow do you supply the vault password when running a playbook?BeginnerWhat is `encrypt_string` and when is it better than encrypting a whole file?IntermediateWhat are vault IDs and why use them?AdvancedHow is Vault data encrypted and what does the file look like?Advanced