I keep a couple of disposable Ubuntu containers around for trying out playbooks before I point them at anything that matters, and this week Lobsters was carrying a report from Jeff Geerling: Ansible's privilege escalation hangs against Ubuntu 26.04. The cause was Ubuntu's new default sudo implementation, a Rust rewrite called sudo-rs , printing a password prompt that Ansible doesn't recognise. The report named a fix and a couple of workarounds. I wanted to know exactly how long the hang is, whether the fix is actually in the Ansible release most people would reach for, and whether the workarounds hold up against a real box.
Reproducing it
I built a plain Ubuntu 26.04 container with openssh-server and sudo-rs installed (the minimal base image doesn't ship it, but it's Ubuntu 26.04's own default once installed, not a custom build), added a user called deploy whose sudo access needs a password, and pointed a one-task playbook at it with become: yes .…