Fixing the client side as per paperms-fix server-config branch.
This commit is contained in:
parent
cf30fbe2e6
commit
c5dbaf38e1
@ -29,9 +29,15 @@
|
|||||||
- name: Disabling pulseaudio startup on lightdm
|
- name: Disabling pulseaudio startup on lightdm
|
||||||
shell: chmod -x /usr/bin/start-pulseaudio-x11
|
shell: chmod -x /usr/bin/start-pulseaudio-x11
|
||||||
|
|
||||||
- name: Adding pulseaudio fixing script at reboot.
|
- name: Removing old (and not-working) approach
|
||||||
lineinfile:
|
file:
|
||||||
line: '@reboot root curl -sSL http://{{ ansible_local.domain.serverfqdn }}/ks/preseed/pulseaudio-perms.sh | bash >/dev/null 2>&1'
|
path: /etc/cron.d/pulseaudio-perms
|
||||||
dest: /etc/cron.d/pulseaudio-perms
|
state: absent
|
||||||
create: yes
|
|
||||||
state: present
|
- 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
|
||||||
|
@ -45,6 +45,4 @@ post-start script
|
|||||||
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
|
chown pulse:pulse-access /var/run/pulse/.pulse-cookie
|
||||||
chmod 640 /var/run/pulse/.pulse-cookie
|
chmod 640 /var/run/pulse/.pulse-cookie
|
||||||
fi
|
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
|
end script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user