Skip to content

Commit 9bde3b8

Browse files
Use lightdm instead of GDM3
1 parent d4a5776 commit 9bde3b8

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- name: Restart gdm
2+
- name: Restart lightdm
33
service:
4-
name: gdm3
4+
name: lightdm
55
enabled: true
66
state: restarted

provision-contest/ansible/roles/domjudge_user/tasks/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,23 @@
2424

2525
- name: Setup autologin on desktop installs
2626
block:
27-
- name: Enable GDM autologin
27+
- name: Enable lightdm autologin
2828
lineinfile:
29-
path: /etc/gdm3/custom.conf
30-
regexp: 'AutomaticLoginEnable'
31-
line: 'AutomaticLoginEnable=true'
29+
path: /etc/lightdm/lightdm.conf
30+
regexp: 'autologin-timeout'
31+
line: 'autologin-timeout=0'
3232
create: true
3333
mode: 0644
34-
notify: Restart gdm
34+
notify: Restart lightdm
3535

3636
- name: Automatically login domjudge user
3737
lineinfile:
38-
path: /etc/gdm3/custom.conf
39-
regexp: 'AutomaticLogin\s*='
40-
line: 'AutomaticLogin=domjudge'
41-
notify: Restart gdm
38+
path: /etc/lightdm/lightdm.conf
39+
regexp: 'autologin-user'
40+
line: 'autologin-user=domjudge'
41+
create: true
42+
mode: 0644
43+
notify: Restart lightdm
4244

4345
- name: Make sure autostart directory exists
4446
file:

0 commit comments

Comments
 (0)