Fixing audio problems for domain users #7

Merged
syntaxerrormmm merged 1 commits from syntaxerrormmm/client-pull-installation:paperms-fix into master 2018-11-11 18:28:40 +00:00
2 changed files with 12 additions and 8 deletions

View File

@ -29,9 +29,15 @@
- name: Disabling pulseaudio startup on lightdm
shell: chmod -x /usr/bin/start-pulseaudio-x11
- name: Adding pulseaudio fixing script at reboot.
lineinfile:
line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1'
dest: /etc/cron.d/pulseaudio-perms
create: yes
state: present
- name: Removing old (and not-working) approach
file:
path: /etc/cron.d/pulseaudio-perms
state: absent
- name: Get the new script
get_url:
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/paperms/paperms.sh"
dest: /tmp/paperms.sh
- name: Run the script (install other support files and fixes the permissions)
shell: bash /tmp/paperms.sh

View File

@ -45,6 +45,4 @@ post-start script
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
chmod 640 /var/run/pulse/.pulse-cookie
fi
# Run script to fix permissions on the pulseaudio stack
/usr/bin/curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | /bin/bash >/dev/null 2>&1 &
end script