Member-only story
Ansible troubleshooting — missing sudo password and incorrect sudo password
How to reproduce the `missing sudo password` and `incorrect sudo password` fatal errors and how to solve it!
4 min readNov 8, 2021
Today we’re going to talk about Ansible troubleshooting, specifically about missing sudo password and incorrect sudo password.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
demo
The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the missing sudo password and incorrect sudo password and how to solve it!
- missingsudopassword_error.yml
---
- name: debug module demo
hosts: all
become: true
tasks:
- name: root test
ansible.builtin.debug:
msg: "privilege escalation successful"
execution
$ ansible-playbook -i demo/inventory troubleshooting/missingsudopassword_error.ymlPLAY [debug module demo] *********************************************************************************TASK [Gathering Facts]…