diff --git a/roles/packages/tasks/media.yml b/roles/packages/tasks/media.yml index 549d703..56aa9d6 100644 --- a/roles/packages/tasks/media.yml +++ b/roles/packages/tasks/media.yml @@ -1,14 +1,4 @@ --- -- name: copy alsa config - copy: - src: asound.conf - dest: /etc/asound.conf - -- name: set pulse config - lineinfile: - path: /etc/pulse/daemon.conf - line: default-sample-rate = 48000 - - name: install media packages apt: name: @@ -45,3 +35,18 @@ - vlc - webp state: present + +- name: copy alsa config + copy: + src: asound.conf + dest: /etc/asound.conf + +- name: set pulse config + lineinfile: + path: /etc/pulse/daemon.conf + line: "{{ item }}" + loop: + - alternate-sample-rate = 88200 + - default-sample-format = s32le + - default-sample-rate = 96000 + - resample-method = speex-float-5