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-pass

Related terms

Taught in

References