From 1da6537ad8f205a4e56866f6429b3c721f34272d Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 22 Oct 2021 10:10:22 +0200 Subject: [PATCH] Add pipewire tasks --- playbook.yml | 1 + tasks/pipewire.yml | 27 +++++++++++++++++++++++++++ vars/main.yml | 3 +++ 3 files changed, 31 insertions(+) create mode 100644 tasks/pipewire.yml diff --git a/playbook.yml b/playbook.yml index ca27f51..912603f 100644 --- a/playbook.yml +++ b/playbook.yml @@ -21,6 +21,7 @@ - import_tasks: 'tasks/mpv.yml' - import_tasks: 'tasks/mpd.yml' - import_tasks: 'tasks/syncthing.yml' + - import_tasks: 'tasks/pipewire.yml' - import_tasks: 'tasks/timer.yml' handlers: - import_tasks: 'handlers.yml' diff --git a/tasks/pipewire.yml b/tasks/pipewire.yml new file mode 100644 index 0000000..da096e2 --- /dev/null +++ b/tasks/pipewire.yml @@ -0,0 +1,27 @@ +- name: stop pulseaudio service + systemd: + name: pulseaudio.service + state: stopped + enabled: false + scope: user + +- name: stop pulseaudio socket + systemd: + name: pulseaudio.socket + state: stopped + enabled: false + scope: user + +- name: start pipewire socket + systemd: + name: pipewire.socket + state: started + enabled: true + scope: user + +- name: start pipewire-pulse socket + systemd: + name: pipewire-pulse.socket + state: started + enabled: true + scope: user diff --git a/vars/main.yml b/vars/main.yml index b7b191f..80107c3 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -26,5 +26,8 @@ packages: - cantata - reflector - laptop-detect + - pipewire + - pipewire-pulse + - pipewire-alsa platform_packages: []