So I decided to modify the @ndlug matrix configuration today and since we use matrix-docker-ansible-deploy (https://github.com/spantaleev/matrix-docker-ansible-deploy), I tried to run:
$ ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start -K
Which allows me to use sudo to become root. Well, it normally does, but because the server is running Ubuntu 26.04 it does not work because ansible does not understand sudo-rs:
https://reddit.com/r/ansible/comments/1t6ie61/become_true_not_working_with_ubuntu_2604_lts/
Fortunately, I was able to find a workaround by adding the following to my ansible.cfg:
[privilege_escalation]
become_method = sudo
become_exe = /usr/bin/sudo.ws
This tells ansible to use the original sudo rather than sudo-rs for privilege escalation.
This is a bit annoying... but not a total dealbreaker. I am finding more and more papercuts with Ubuntu though, particularly on the server side, which I was not anticipating. This might further encourage me to continue my transition to Debian :|
#ubuntu #sudo #ansible