diff --git a/roles/pulseaudio/tasks/main.yml b/roles/pulseaudio/tasks/main.yml new file mode 100644 index 0000000..36a58af --- /dev/null +++ b/roles/pulseaudio/tasks/main.yml @@ -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 diff --git a/roles/pulseaudio/templates/alsa/asound.conf.j2 b/roles/pulseaudio/templates/alsa/asound.conf.j2 new file mode 100644 index 0000000..23e1f11 --- /dev/null +++ b/roles/pulseaudio/templates/alsa/asound.conf.j2 @@ -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" +}