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 fcc7437 commit af7c84e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
- pipewire
- pipewire-alsa
- alsa-utils
when: not (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('23.04', '<=')) or
not (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 af7c84e

Please sign in to comment.