Ansible Fails waiting for privilege escalation on Ubuntu 26
Ubuntu 26 has recently introduced significant changes to its foundational tools, particularly the sudo utility. Ubuntu's developers have rewritten these core components in Rust, a programming language known for its speed and safety guarantees. However, this transition has led to compatibility issues with existing tools like Ansible, a popular automation framework.
When Ansible attempts to authenticate using sudo, it encounters an extra string before the password prompt, causing Ansible to fail. This issue has been reported in the Ansible project's forums, where users discuss the incompatibility between sudo-rs and the traditional sudo. The team behind Ansible has included a fix in version 2.22.0, which is being backported to earlier versions (2.16, 2.18, 2.19, 2.20, and potentially 2.21) to address the problem. This fix resolves the issue for most users.
Interestingly, the same issue has impacted other automation tools like pyinfra, whose developers have since released a patch in version 3.11. The solution for affected users is straightforward: upgrade Ansible to the latest version or configure the become_exe variable in the hosts file to revert to the traditional sudo version. Alternatively, users can revert sudo system-wide on their Ubuntu servers.
The decision to rewrite Ubuntu's foundational tools in Rust has sparked debate within the Linux community. While Rust is a powerful and modern language, some argue that foundational tools like sudo should remain stable and reliable. This change has led to calls for more gradual updates to core components of the Linux ecosystem, suggesting that significant structural changes should be introduced earlier in the development cycle.
With Ubuntu's fast release cycle, major changes can quickly impact production systems, leading to concerns about the balance between innovation and stability.
Rewritten by urgent.news; may contain errors — check the original.
Source: jeffgeerling.com