music: Add systemd --user operations

This commit is contained in:
polyfloyd 2025-05-21 20:31:26 +02:00
parent aa32225eea
commit 681f25382a
3 changed files with 45 additions and 1 deletions

View file

@ -2,6 +2,26 @@
- ansible.builtin.import_tasks:
file: ../../common/handlers/main.yaml
- name: restart pipewire
become: true
become_user: "{{ music_audio_user }}"
become_method: machinectl
ansible.builtin.systemd:
name: pipewire
state: restarted
daemon_reload: true
scope: user
- name: restart filter-chain
become: true
become_user: "{{ music_audio_user }}"
become_method: machinectl
ansible.builtin.systemd:
name: filter-chain
state: restarted
daemon_reload: true
scope: user
- name: restart bitvis
ansible.builtin.systemd:
name: bitvis