Add KDE plasma as another kiosk system option.
This commit is contained in:
parent
fef999e7fe
commit
b3b8d3d342
8 changed files with 72 additions and 4 deletions
8
roles/kiosk/files/kde5rc
Normal file
8
roles/kiosk/files/kde5rc
Normal file
|
@ -0,0 +1,8 @@
|
|||
[KDE Action Restrictions][$i]
|
||||
action/start_new_session=false
|
||||
action/switch_user=false
|
||||
action/lock_screen=false
|
||||
action/logout=false
|
||||
|
||||
[General]
|
||||
BrowserApplication=firefox-esr.desktop
|
3
roles/kiosk/files/kscreenlockerrc
Normal file
3
roles/kiosk/files/kscreenlockerrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Daemon][$i]
|
||||
Autolock=false
|
||||
LockOnResume=false
|
|
@ -12,24 +12,51 @@
|
|||
apt: name={{ extra_pkgs_bpo }} state=latest default_release={{ deb_release }}-backports
|
||||
when: extra_pkgs_bpo|length
|
||||
|
||||
## Check which display manager is used:
|
||||
- name: check if gdm3 is installed
|
||||
stat: path=/etc/gdm3/daemon.conf
|
||||
register: gdm3
|
||||
|
||||
- name: enable auto login
|
||||
- name: check if sddm is installed
|
||||
stat: path=/usr/bin/sddm
|
||||
register: sddm
|
||||
|
||||
## gdm3:
|
||||
- name: enable auto login in gdm3
|
||||
when: gdm3.stat.exists == true
|
||||
lineinfile:
|
||||
dest: /etc/gdm3/daemon.conf
|
||||
insertafter: '^#\s*AutomaticLoginEnable = true'
|
||||
line: 'AutomaticLoginEnable = true'
|
||||
|
||||
- name: auto login user
|
||||
- name: auto login user in gdm3
|
||||
when: gdm3.stat.exists == true
|
||||
lineinfile:
|
||||
dest: /etc/gdm3/daemon.conf
|
||||
insertafter: '^#\s*AutomaticLogin = '
|
||||
line: 'AutomaticLogin = {{ auto_user }}'
|
||||
|
||||
## sddm/KDE:
|
||||
- name: enable auto login in sddm
|
||||
when: sddm.stat.exists == true
|
||||
template:
|
||||
src: sddm.conf.j2
|
||||
dest: /etc/sddm.conf
|
||||
|
||||
- name: kde global defaults
|
||||
when: sddm.stat.exists == true
|
||||
copy:
|
||||
src: kde5rc
|
||||
dest: /etc/kde5rc
|
||||
|
||||
- name: modify kde screen lock
|
||||
when: sddm.stat.exists == true
|
||||
copy:
|
||||
src: kscreenlockerrc
|
||||
dest: /etc/xdg/kscreenlockerrc
|
||||
|
||||
########
|
||||
|
||||
- name: graphics quirk
|
||||
when: ansible_product_name == "HP 500" or ansible_product_name == "HP 550"
|
||||
lineinfile:
|
||||
|
|
4
roles/kiosk/templates/sddm.conf.j2
Normal file
4
roles/kiosk/templates/sddm.conf.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
[Autologin]
|
||||
Relogin=true
|
||||
Session=plasma.desktop
|
||||
User={{ auto_user }}
|
Loading…
Add table
Add a link
Reference in a new issue