Interview Prep/Ansible/Privilege Escalation and Python Interpreter Issues

`FAILED! => {"msg": "Incorrect sudo password"}` for one host only

BeginnerTroubleshootingPrivilege Escalation and Python Interpreter Issues
Answer

Likely causes → Host-specific password differs from the rest or account locked after bad attempts.

Diagnose → ssh -t host sudo -v; check faillock or pam_tally2.

Fix → Set the host's own ansible_become_password in host_vars, reset the faillock: faillock --user ansible --reset.

Prevent → Use passwordless sudo and consistent accounts.

All Ansible questions Roadmap: Ansible

More on Privilege Escalation and Python Interpreter Issues