Oriel — AI & technology worth noticing, every day.

Ansible Fails waiting for privilege escalation on Ubuntu 26

Web page · https://jeffgeerling.com/blog/2026/ansible-fails-become-ubuntu2604

First seen by Oriel on .

AI summary

This post describes Ansible’s sudo password-prompt timeout on Ubuntu 26.04 with sudo-rs, and reports fixes in Ansible Core 2.22.0 and updated releases.

  • Ubuntu 26.04’s sudo-rs prints an extra string before the password prompt, confusing automation tools that wait for a specific prompt.
  • The failure appears when password-protected sudo is used with ansible-playbook main.yml -K, timing out after 12 seconds during fact gathering.
  • Updating Ansible with pip install -U ansible restores -K (--ask-become-pass); fixes are also being backported to several 2.16–2.20 releases.
  • Users can instead set ansible_become_exe=sudo.ws or select the traditional sudo systemwide with update-alternatives --config sudo.
  • The issue reportedly also affected pyinfra, whose fix is included in its latest 3.11 release.

#ansible #sudo-rs #ubuntu #privilege escalation

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 15, latest observation ; +14 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 16, latest observation ; +14 over observed period since

Aliases

SourceExternal IDURL
Lobsters3lkriuhttps://www.jeffgeerling.com/blog/2026/ansible-fails-become-ubuntu2604/ Read discussion