Skip to content

Commit

Permalink
[ansible/sound] Fallback to check if WSL2
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 22, 2023
1 parent 85db73f commit 4169c9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ansible/roles/ovos_installer/tasks/sound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@
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
echo "pulseaudio"
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"
Expand Down

0 comments on commit 4169c9e

Please sign in to comment.