Interview Prep/Ansible/Vault, Privilege Escalation and Error Handling

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.

All Ansible questions Roadmap: Ansible

More on Vault, Privilege Escalation and Error Handling