diff --git a/ansible/roles/ovos_installer/tasks/sound.yml b/ansible/roles/ovos_installer/tasks/sound.yml index 3beefaa2..d9660d85 100644 --- a/ansible/roles/ovos_installer/tasks/sound.yml +++ b/ansible/roles/ovos_installer/tasks/sound.yml @@ -1,20 +1,26 @@ --- - name: Install PipeWire with ALSA support + vars: + # Debian Unstable hack + _distribution_version: "{{ '99' if ansible_distribution == 'Debian' and ansible_distribution_version == 'n/a' else ansible_distribution_version }}" ansible.builtin.package: name: - pipewire - pipewire-alsa - alsa-utils - when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('23.04', '<=') or - ansible_distribution == 'Debian' and ansible_distribution_version is version('12.0', '<=')) + when: not (ansible_distribution == 'Ubuntu' and _distribution_version is version('23.04', '<=') or + ansible_distribution == 'Debian' and _distribution_version is version('12.0', '<=')) - name: Install PulseAudio on older Debian and Ubuntu versions + vars: + # Debian Unstable hack + _distribution_version: "{{ '99' if ansible_distribution == 'Debian' and ansible_distribution_version == 'n/a' else ansible_distribution_version }}" ansible.builtin.package: name: - pulseaudio - alsa-utils - when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('23.04', '<=') or - ansible_distribution == 'Debian' and ansible_distribution_version is version('12.0', '<=')) + when: (ansible_distribution == 'Ubuntu' and _distribution_version is version('23.04', '<=') or + ansible_distribution == 'Debian' and _distribution_version is version('12.0', '<=')) - name: Add {{ ovos_installer_user }} to audio group ansible.builtin.user: