Ansible Fails waiting for privilege escalation on Ubuntu 26

Curated from Lobsters

This Lobsters thread points to a failure mode that many teams will hit during OS upgrades: Ansible stalls with "waiting for privilege escalation prompt." The error means Ansible's become logic never matched the prompt it expected from sudo, so the task hangs or times out. The source of the mismatch varies. A changed sudo implementation or prompt text, a shift in default sudoers behaviour, a locale change, or a password requirement that was previously absent can all produce it. Because the symptom appears on a new distribution release, it's easy to blame Ansible itself, when the real change sits in the target host's privilege stack. Treat this as a prompt-matching problem first and check the target's sudo version and configuration before tuning playbooks. The thread is worth reading for the diagnostic path other operators took, even if your exact cause differs.

Comments

— Lobsters

Read the full article on Lobsters →