Skip to content

Commit

Permalink
[ansible/sound] Close issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 27, 2023
1 parent bb2dde9 commit 07cf5a0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 07cf5a0

Please sign in to comment.