38 lines
939 B
YAML
38 lines
939 B
YAML
---
|
|
# Manages reactivation of pulseaudio as system daemon
|
|
|
|
- name: "Allowing pulseaudio to run at startup"
|
|
lineinfile:
|
|
regexp: '^#start on runlevel'
|
|
line: 'start on runlevel [2345]'
|
|
dest: /etc/init/pulseaudio.conf
|
|
state: present
|
|
|
|
- name: Starting pulseaudio service
|
|
service:
|
|
name: pulseaudio
|
|
state: started
|
|
sudo: yes
|
|
|
|
- name: "Configuring client options"
|
|
lineinfile:
|
|
line: '{{ item }}'
|
|
dest: /etc/pulse/client.conf
|
|
state: present
|
|
with_items:
|
|
- 'default-server = /var/run/pulse/native'
|
|
- 'autospawn = no'
|
|
|
|
- name: Disabling pulseaudio startup on lightdm
|
|
shell: chmod -x /usr/bin/start-pulseaudio-x11
|
|
sudo: yes
|
|
|
|
# Need to manage additions to pulse and pulse-access groups
|
|
- name: Copying script to manage users in pulse and pulse-access
|
|
copy:
|
|
src: pulseaudio-perms.sh
|
|
dest: '/var/lib/{{ domainfull }}/bin/pulseaudio-perms.sh'
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|