aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/pipewire.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-01 22:28:22 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-01 22:28:55 +0200
commitc8de512a98462327b909311d2f89c90c32fb9246 (patch)
treedf11ba3e4c005644e1a4a9c61b8790523333a6ee /roles/workstation/tasks/pipewire.yml
parente91ac09b9ed3d3768b99315c13366da23a13a3fa (diff)
downloadrules-c8de512a98462327b909311d2f89c90c32fb9246.tar.gz
chore: migrate package install in distinct roles
Diffstat (limited to 'roles/workstation/tasks/pipewire.yml')
-rw-r--r--roles/workstation/tasks/pipewire.yml21
1 files changed, 21 insertions, 0 deletions
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"
remember that computers suck.