mirror of
https://github.com/gjkcz/ansible-void.git
synced 2024-11-22 00:35:59 +01:00
Add session cleanup script
This commit is contained in:
parent
14df18f1d4
commit
19af9b8d2c
10
files/session-cleanup.sh
Normal file
10
files/session-cleanup.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Session cleanup for user student on logout
|
||||||
|
|
||||||
|
if [ "${USERNAME}" = "student" ]; then
|
||||||
|
rm -rf /home/student/.cache/mozilla
|
||||||
|
rm -rf /home/student/.mozilla
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
@ -88,6 +88,12 @@
|
|||||||
line: "DenyUsers student"
|
line: "DenyUsers student"
|
||||||
create: true
|
create: true
|
||||||
|
|
||||||
|
- name: Copy session cleanup script
|
||||||
|
copy:
|
||||||
|
src: 'files/session-cleanup.sh'
|
||||||
|
dest: '/etc/gdm/PostSession/Default'
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
|
||||||
- name: Software
|
- name: Software
|
||||||
hosts: all
|
hosts: all
|
||||||
|
Loading…
Reference in New Issue
Block a user