Skip to content

Commit

Permalink
[ansible] Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 20, 2023
1 parent af7c84e commit dd5af9f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
- 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 ansible_distribution_version is version('23.04', '<=') or
ansible_distribution == 'Debian' and ansible_distribution_version is version('12.0', '<='))

- name: Install PulseAudio on older Debian and Ubuntu versions
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 ansible_distribution_version is version('23.04', '<=') or
ansible_distribution == 'Debian' and ansible_distribution_version is version('12.0', '<='))

- name: Add {{ ovos_installer_user }} to audio group
ansible.builtin.user:
Expand Down

0 comments on commit dd5af9f

Please sign in to comment.