become password
The password the escalation tool, usually sudo, asks for on the managed node, which Ansible must be told to supply.
A become password left in a playbook or log gives anyone who reads it root access on your hosts.
In more detail
Pass --ask-become-pass (-K) to be prompted once at the start, or configure an equivalent setting. Without it a run that needs the password hangs or fails with a missing password message. Never write the password into a playbook; if it must be stored, keep it in a Vault-encrypted file.
Example
ansible-playbook deploy.yml --ask-become-passRelated terms
- become — The Ansible keyword that switches on privilege escalation, so a task or a whole play runs as another account, root by default.
- hang — When a program stops making progress but does not finish or report an error, so it just sits waiting.
- Ansible Vault — Ansible's built-in feature and command for encrypting secrets such as passwords and keys so the encrypted files can live in the project.
Taught in
- Connections And Privilege Escalation — Ansible Configuration Management at Scale