added facts gathering for become sudo-rs workaround

This commit is contained in:
Ebbe Baß
2026-07-16 08:56:39 +02:00
parent f5366b004a
commit 8013bf917c
4 changed files with 10 additions and 3 deletions
@@ -1,5 +1,6 @@
- name: Install basic features
hosts: all
gather_facts: true
become: true
become_exe: "{{ 'sudo.ws' if ansible_facts.packages['sudo-rs'] is defined else 'sudo' }}" # Temporary workaround for sudo-rs on Ubuntu 25.10 or later including 26.04 LTS (Lunar Lobster).