diff --git a/ansible/roles/ovos_installer/tasks/sound.yml b/ansible/roles/ovos_installer/tasks/sound.yml index d4d378f4..3beefaa2 100644 --- a/ansible/roles/ovos_installer/tasks/sound.yml +++ b/ansible/roles/ovos_installer/tasks/sound.yml @@ -37,8 +37,6 @@ ansible.builtin.meta: flush_handlers - name: Re-detect sound server - become: true - become_user: "{{ ovos_installer_user }}" ansible.builtin.shell: cmd: | if pgrep -x "pipewire-pulse$" &>/dev/null || pgrep -x "pulseaudio$" &>/dev/null; then @@ -46,7 +44,7 @@ elif pgrep -x "pipewire$" &>/dev/null; then echo "pipewire" else - if pactl info &>>/dev/null; then + if [[ "{{ ansible_kernel }}" =~ "microsoft" ]]; then echo "pulseaudio" else echo "n/a"