Skip to content

Commit

Permalink
[ansible] Install PulseAudio on Debian < 12 and Ubuntu < 23
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 20, 2023
1 parent 771572c commit 010e35b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 010e35b

Please sign in to comment.