summaryrefslogtreecommitdiff
path: root/roles/ws/pipewire/tasks/main.yml
blob: 3f99b60cac13dc7b0d00200aab3aa386c5419e42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- name: install pipewire and deps
  apt:
    name:
    - libldacbt-abr2
    - libldacbt-enc2
    - libspa-0.2-bluetooth
    - pipewire-audio-client-libraries
    - wireplumber
    - pipewire-pulse
    - gstreamer1.0-pipewire
    state: present

- name: remove default pipewire session manager
  apt:
    name:
    - pipewire-media-session
    - pulseaudio-module-bluetooth
    state: absent
    purge: yes

- name: enable wireplumber
  systemd:
    daemon_reload: yes
    scope: global
    name: wireplumber.service
    enabled: yes

- name: disable pulseaudio
  loop:
  - socket
  - service
  systemd:
    daemon_reload: yes
    scope: global
    name: "pulseaudio.{{ item }}"
    enabled: false

- name: switch to pipewire for alsa defult device
  copy:
    remote_src: yes
    src: /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf
    dest: /etc/alsa/conf.d/99-pipewire-default.conf

- name: remove pulseadio for alsa default device
  loop:
  - 99-pulseaudio-default.conf.example
  - 99-pulse.conf
  file:
    path: "/etc/alsa/conf.d/{{ item }}"
    state: absent