Missing sudo password in Ansible

Try with the option -kK. It will prompt for password.

$ ansible-playbook mail.yml -kK 
SSH password: 
BECOME password[defaults to SSH password]: 
  • -k, –ask-pass: ask for connection password
  • -K, –ask-become-pass: ask for privilege escalation password

Leave a Comment

tech