News
Ansible Fails waiting for privilege escalation on Ubuntu 26
The Brief
- Jeff Geerling reports that Ansible automation starts failing on Ubuntu 26 when sudo requires a password.
- He was moving servers from Ubuntu 22 and 24 to Ubuntu 26 this year when the failure appeared.
- The failure occurs when running ansible-playbook with the -K (BECOME password) option.
Why it matters
Playbooks that use privilege escalation with a sudo password may fail on Ubuntu 26 hosts, which can block automated server setup and maintenance.
Who’s affected
- Ansible users running playbooks with sudo password prompts on Ubuntu 26
- Ubuntu 26
- #ansible
- #ubuntu
- #sudo
- #privilege-escalation
- #automation
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: $ ansible-playbook main.yml -K BECOME password: PLAY [Security]…