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
2121# Set this to true when you are using the ICPC World Finals Contest Image
2222ICPC_IMAGE : false
2323
24+ # Set this to true when you are using a graphical desktop
25+ GRAPHICAL : false
26+
2427# Set this when on the blue network at the World Finals where no
2528# internet access is available and "packages" must be used as APT repo
2629# server.
@@ -60,3 +63,4 @@ STATIC_SCOREBOARD_HOSTNAME: scoreboard
6063
6164STATIC_SCOREBOARD_SSL_CERT : /etc/ssl/certs/scoreboard.crt
6265STATIC_SCOREBOARD_SSL_KEY : /etc/ssl/private/scoreboard.key
66+
Original file line number Diff line number Diff line change 6969 mode : 0755
7070 loop :
7171 - rotate
72+ when : GRAPHICAL
7273
7374 - name : add autostart shortcuts from template
7475 template :
7980 mode : 0755
8081 loop :
8182 - taillog
83+ when : GRAPHICAL
Original file line number Diff line number Diff line change 3838 group : domjudge
3939 mode : 0644
4040
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 3333 group : root
3434 mode : 0755
3535 notify : update dconf
36+ when : GRAPHICAL
You can’t perform that action at this time.
0 commit comments