add pulseaudio role
This commit is contained in:
parent
2a4dc82e21
commit
9d61950078
15
roles/pulseaudio/tasks/main.yml
Normal file
15
roles/pulseaudio/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: install pulseaudio
|
||||||
|
apt:
|
||||||
|
name: '{{ item }}'
|
||||||
|
state: present
|
||||||
|
install_recommends: no
|
||||||
|
with_items:
|
||||||
|
- pulseaudio
|
||||||
|
- pavucontrol
|
||||||
|
|
||||||
|
- name: create /etc/asound.conf
|
||||||
|
template:
|
||||||
|
src: templates/alsa/asound.conf.j2
|
||||||
|
dest: /etc/asound.conf
|
14
roles/pulseaudio/templates/alsa/asound.conf.j2
Normal file
14
roles/pulseaudio/templates/alsa/asound.conf.j2
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Use PulseAudio by default
|
||||||
|
pcm.!default {
|
||||||
|
type pulse
|
||||||
|
fallback "sysdefault"
|
||||||
|
hint {
|
||||||
|
show on
|
||||||
|
description "Default ALSA Output (currently PulseAudio Sound Server)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ctl.!default {
|
||||||
|
type pulse
|
||||||
|
fallback "sysdefault"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user