From c5dbaf38e1ab448569a1ae8cf55a8b189261aa47 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 8 Nov 2018 23:14:22 +0100 Subject: [PATCH] Fixing the client side as per paperms-fix server-config branch. --- roles/domain/tasks/audio.yml | 18 ++++++++++++------ roles/domain/templates/pulseaudio.conf | 2 -- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/roles/domain/tasks/audio.yml b/roles/domain/tasks/audio.yml index 2673d56..25a6082 100644 --- a/roles/domain/tasks/audio.yml +++ b/roles/domain/tasks/audio.yml @@ -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 diff --git a/roles/domain/templates/pulseaudio.conf b/roles/domain/templates/pulseaudio.conf index 9751855..707e6a3 100644 --- a/roles/domain/templates/pulseaudio.conf +++ b/roles/domain/templates/pulseaudio.conf @@ -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