Skip to content

Commit

Permalink
[ansible/audio] Syntax improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Oct 30, 2024
1 parent 437678e commit f3a140b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
- "{{ 'pipewire-alsa' if ansible_distribution not in ['Linux Mint', 'Zorin OS'] else 'pipewire' }}"
- alsa-utils
register: _pipewire_install
when: not (ansible_distribution == 'Ubuntu' and _distribution_version is version('23.04', '<=') or
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
Expand All @@ -20,7 +21,8 @@
- pulseaudio
- alsa-utils
register: _pulseaudio_install
when: (ansible_distribution == 'Ubuntu' and _distribution_version is version('23.04', '<=') or
when:
(ansible_distribution == 'Ubuntu' and _distribution_version is version('23.04', '<=') or
ansible_distribution == 'Debian' and _distribution_version is version('12.0', '<='))

- name: Determine available groups
Expand Down

0 comments on commit f3a140b

Please sign in to comment.