File tree Expand file tree Collapse file tree 4 files changed +32
-23
lines changed
provision-contest/ansible Expand file tree Collapse file tree 4 files changed +32
-23
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ DOMSERVER_SSL_KEY: /etc/ssl/private/domserver.key
21
21
# Set this to true when you are using the ICPC World Finals Contest Image
22
22
ICPC_IMAGE : false
23
23
24
+ # Set this to true when you are using a graphical desktop
25
+ GRAPHICAL : false
26
+
24
27
# Set this when on the blue network at the World Finals where no
25
28
# internet access is available and "packages" must be used as APT repo
26
29
# server.
@@ -60,3 +63,4 @@ STATIC_SCOREBOARD_HOSTNAME: scoreboard
60
63
61
64
STATIC_SCOREBOARD_SSL_CERT : /etc/ssl/certs/scoreboard.crt
62
65
STATIC_SCOREBOARD_SSL_KEY : /etc/ssl/private/scoreboard.key
66
+
Original file line number Diff line number Diff line change 69
69
mode : 0755
70
70
loop :
71
71
- rotate
72
+ when : GRAPHICAL
72
73
73
74
- name : add autostart shortcuts from template
74
75
template :
79
80
mode : 0755
80
81
loop :
81
82
- taillog
83
+ when : GRAPHICAL
Original file line number Diff line number Diff line change 38
38
group : domjudge
39
39
mode : 0644
40
40
41
- - name : enable GDM autologin
42
- lineinfile :
43
- path : /etc/gdm3/custom.conf
44
- regexp : ' AutomaticLoginEnable'
45
- line : ' AutomaticLoginEnable=true'
46
- create : true
47
- mode : 0644
48
- notify : restart gdm
49
-
50
- - name : Automatically login domjudge user
51
- lineinfile :
52
- path : /etc/gdm3/custom.conf
53
- regexp : ' AutomaticLogin='
54
- line : ' AutomaticLogin=domjudge'
55
- notify : restart gdm
56
-
57
- - name : make sure autostart directory exists
58
- file :
59
- dest : /home/domjudge/.config/autostart
60
- state : directory
61
- owner : domjudge
62
- group : domjudge
63
- mode : 0755
41
+ - block :
42
+ - name : enable GDM autologin
43
+ lineinfile :
44
+ path : /etc/gdm3/custom.conf
45
+ regexp : ' AutomaticLoginEnable'
46
+ line : ' AutomaticLoginEnable=true'
47
+ create : true
48
+ mode : 0644
49
+ notify : restart gdm
50
+
51
+ - name : Automatically login domjudge user
52
+ lineinfile :
53
+ path : /etc/gdm3/custom.conf
54
+ regexp : ' AutomaticLogin='
55
+ line : ' AutomaticLogin=domjudge'
56
+ notify : restart gdm
57
+
58
+ - name : make sure autostart directory exists
59
+ file :
60
+ dest : /home/domjudge/.config/autostart
61
+ state : directory
62
+ owner : domjudge
63
+ group : domjudge
64
+ mode : 0755
65
+ when : GRAPHICAL
Original file line number Diff line number Diff line change 33
33
group : root
34
34
mode : 0755
35
35
notify : update dconf
36
+ when : GRAPHICAL
You can’t perform that action at this time.
0 commit comments