summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-01-10 01:03:27 +0100
committerAhmed AbdelHalim <[email protected]>2026-01-10 01:03:27 +0100
commit853f44d67930d644f64781468fcd534507acba7f (patch)
tree1d09e1cf17273a10fafff8c6f471d4e4012f28d2 /roles
parent3a689341e23100bd59b9e6de3be467cc516ba526 (diff)
It's probably not required to have the services restarted on every run
This simplifies the service and make sure that it is started (not restarted), and mask the pulseaudio as per another tutorial recommendations, than the one used for installing
Diffstat (limited to 'roles')
-rw-r--r--roles/pipewire/tasks/main.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/roles/pipewire/tasks/main.yml b/roles/pipewire/tasks/main.yml
index 870ec6f3..37293677 100644
--- a/roles/pipewire/tasks/main.yml
+++ b/roles/pipewire/tasks/main.yml
@@ -2,17 +2,20 @@
- name: "Include OS-specific tasks"
ansible.builtin.include_tasks: "install-{{ ansible_os_family | lower }}.yml"
+- name: "Ensure pulseaudio services are masked"
+ ansible.builtin.systemd_service:
+ name: "pulseaudio"
+ masked: true
+ state: "stopped"
+ scope: "user"
+
- name: "Ensure pipewire services are restarted"
ansible.builtin.systemd_service:
name: "{{ item }}"
enabled: "true"
- state: "restarted"
+ state: "started"
scope: "user"
loop:
- "pipewire"
- "pipewire-pulse"
- "wireplumber"
- tags:
- # Since this is the recommended way for ensuring the services are started
- # must be ignored from idempotence testing because it always reports changed
- - molecule-idempotence-notest