17 lines
729 B
YAML
17 lines
729 B
YAML
|
#!/usr/bin/env ansible-playbook
|
||
|
# vim:ft=ansible:
|
||
|
- name: assure pulse package
|
||
|
apt: name=pulseaudio
|
||
|
when: ansible_os_family == 'Debian'
|
||
|
- name: template out configs
|
||
|
template: src={{ item.src }} dest={{ item.dest }} mode=0644
|
||
|
loop:
|
||
|
- { src: "pulse-client.conf", dest: "/etc/pulse/client.conf" }
|
||
|
- { src: "pulse-daemon.conf", dest: "/etc/pulse/daemon.conf" }
|
||
|
- { src: "pulse-default.pa", dest: "/etc/pulse/default.pa" }
|
||
|
- { src: "pulseaudio.service", dest: "/etc/systemd/system/pulseaudio.service" }
|
||
|
- name: assure pulse user
|
||
|
user: name=pulseaudio password="!" system=yes home=/var/lib/pulse groups=audio
|
||
|
- name: enable pulse service
|
||
|
systemd: name=pulseaudio enabled=yes state=started daemon_reload=yes
|