From 010e35b0737a308d4f66be08afee94fbc6bedc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Mon, 20 Nov 2023 17:58:47 -0500 Subject: [PATCH] [ansible] Install PulseAudio on Debian < 12 and Ubuntu < 23 --- ansible/roles/ovos_installer/tasks/sound.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/ovos_installer/tasks/sound.yml b/ansible/roles/ovos_installer/tasks/sound.yml index 0455dd71..28b1f7f7 100644 --- a/ansible/roles/ovos_installer/tasks/sound.yml +++ b/ansible/roles/ovos_installer/tasks/sound.yml @@ -5,6 +5,16 @@ - pipewire - pipewire-alsa - alsa-utils + when: (not ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('23', operator='ge', strict=True)) or + (not ansible_distribution == 'Debian' and ansible_distribution_major_version is version('12', operator='ge', strict=True)) + +- name: Install PulseAudio on older Debian and Ubuntu versions + ansible.builtin.package: + name: + - pulseaudio + - alsa-utils + when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version is version('23', operator='lt', strict=True)) or + (ansible_distribution == 'Debian' and ansible_distribution_major_version is version('12', operator='lt', strict=True)) - name: Add {{ ovos_installer_user }} to audio group ansible.builtin.user: