Ansible Fails waiting for privilege escalation on Ubuntu 26

2026年11月25日

AI 摘要 AI 生成,可能有误

作者发现,在刚升级到 Ubuntu 26.04 的服务器上,当启用 sudo 密码保护时,Ansible playbook 会运行失败,并出现超时错误:“Timeout (12s) waiting for privilege escalation prompt”(等待权限提升提示超时(12秒))。原因在于 Ubuntu 26.04 附带了 sudo-rs,这是用 Rust 重写的 sudo 版本,它与 Ansible 所依赖的传统 sudo 行为不兼容。

I've slowly been moving my servers from Ubuntu 22 and 24 to 26 this year, and noticed my Ansible automation starts failing if I have password protection for sudo use:

Apparently Ubuntu's been rewriting system utilities in Rust, and the sudo-rs version that ships on Ubuntu 26.04 has some incompatiblities with the sudo I've used on servers for 20+ years.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Jeff Geerling

Remotely unplugging a USB device on my Mac, without touching it

AI 摘要The author was remotely debugging a USB-C device with custom firmware plugged into a Mac Studio at work, accessed over a WireGuard VPN tunnel. The debugging process involves flashing firmware via MIDI SysEx messages, a handy but flaky technique that can leave the device partially flashed. Recovering from this failure state normally requires physically re-plugging the device, which motivated the author's approach to remotely unplugging it.

I joined the NTP Pool, but not with my Stratum 1 Pi

AI 摘要The author has joined the NTP Pool with a public Stratum 2 NTP time server (ntp-01.jeffgeerling.com), which sources its time from his private Stratum 1 time server (time.jeffgeerling.com) in his studio. His Time Pi connects to an outdoor GNSS antenna through a TimeHAT v6 paired with the timing-grade u-blox ZED-F9T GNSS module.

Ops needs friction

AI 摘要Reflecting on the recent Microsoft outage and FAA ground stop, the author draws on experiences with infrastructure and ops teams to highlight how smaller-scale incidents are handled. The key insight, gained over a decade of software development, is that an ops mindset is fundamentally different from a development or project management mindset.

Rejoice, leap seconds are dead!

AI 摘要The CGPM (General Conference on Weights and Measures) has decided that no more leap seconds will ever be added to UTC, with the last one having occurred at the end of 2016. The author expresses excitement about this decision, which was made while they were on vacation.

Noctua Fan Swap on a Calnex Rb/GPS Frequency Reference

AI 摘要The author documents what they believe is the only online guide to performing a fan swap on a Calnex Rb/GPS frequency reference used in their 'Atomic Clock Tower.' Using a Torx T10 screwdriver, they removed the top cover, noting the screws were secured with Loctite and required force to loosen. The interior proved simple and serviceable, containing a SpectraTime GRClok-1500 with an integrated timing-grade GPS module and a stabilized 10 MHz output.