From c8de512a98462327b909311d2f89c90c32fb9246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 1 Oct 2022 22:28:22 +0200 Subject: chore: migrate package install in distinct roles --- roles/workstation/tasks/pipewire.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 roles/workstation/tasks/pipewire.yml (limited to 'roles/workstation/tasks/pipewire.yml') diff --git a/roles/workstation/tasks/pipewire.yml b/roles/workstation/tasks/pipewire.yml new file mode 100644 index 0000000..1192563 --- /dev/null +++ b/roles/workstation/tasks/pipewire.yml @@ -0,0 +1,21 @@ +- name: install pipewire + package: + name: + - pipewire + - pipewire-alsa + - pipewire-pulse + state: present + +- name: enable and start pipewire + systemd: + name: "{{ item }}" + scope: user + enabled: true + state: started + become: true + become_method: su + become_user: "{{ workstation_user }}" + loop: + - pipewire + - pipewire-pulse + when: ansible_service_mgr == "systemd" -- cgit v1.2.3