File tree Expand file tree Collapse file tree 8 files changed +46
-30
lines changed Expand file tree Collapse file tree 8 files changed +46
-30
lines changed Original file line number Diff line number Diff line change 9
9
roles :
10
10
- role : base_packages
11
11
tags : base_packages
12
+ - role : icpc_fixes
13
+ tags : icpc_fixes
14
+ when : ICPC_IMAGE
12
15
- role : system_fixes
13
16
tags : system_fixes
14
17
- role : hosts
Original file line number Diff line number Diff line change 9
9
roles :
10
10
- role : base_packages
11
11
tags : base_packages
12
+ - role : icpc_fixes
13
+ tags : icpc_fixes
14
+ when : ICPC_IMAGE
12
15
- role : system_fixes
13
16
tags : system_fixes
14
17
- role : hosts
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ DOMSERVER_URL: "{{DOMSERVER}}"
18
18
DOMSERVER_SSL_CERT : /etc/ssl/certs/domserver.crt
19
19
DOMSERVER_SSL_KEY : /etc/ssl/private/domserver.key
20
20
21
+ # Set this to true when you are using the ICPC World Finals Contest Image
22
+ ICPC_IMAGE : false
23
+
21
24
# Set this when on the blue network at the World Finals where no
22
25
# internet access is available and "packages" must be used as APT repo
23
26
# server.
Original file line number Diff line number Diff line change 9
9
roles :
10
10
- role : base_packages
11
11
tags : base_packages
12
+ - role : icpc_fixes
13
+ tags : icpc_fixes
14
+ when : ICPC_IMAGE
12
15
- role : system_fixes
13
16
tags : system_fixes
14
17
- role : hosts
Original file line number Diff line number Diff line change
1
+ ---
2
+ # Define here handlers associated to this role.
3
+
4
+ - name : restart systemd timesyncd
5
+ command : systemctl restart systemd-timesyncd
Original file line number Diff line number Diff line change
1
+ ---
2
+ # These tasks perform fixes used on the ICPC image to the base system.
3
+
4
+ - name : add NTP servers
5
+ lineinfile :
6
+ dest : /etc/systemd/timesyncd.conf
7
+ regexp : ' ^#?NTP='
8
+ line : " NTP=10.3.3.208 10.3.3.209"
9
+ notify : restart systemd timesyncd
10
+ when : WF_RESTRICTED_NETWORK
11
+
12
+ - name : remove source line from interfaces
13
+ lineinfile :
14
+ dest : /etc/network/interfaces
15
+ regexp : ' ^source-'
16
+ state : absent
17
+
18
+ - name : Re-order PXEboot
19
+ shell : efibootmgr -o {{ EFI_ORDER }}
20
+ when : EFI_ORDER is defined
21
+
22
+ - name : disable mumble,selfie services
23
+ service :
24
+ name : " {{ item }}"
25
+ state : stopped
26
+ enabled : no
27
+ with_items :
28
+ - mumble-server
29
+ - selfie
Original file line number Diff line number Diff line change 1
1
---
2
2
# Define here handlers associated to this role.
3
3
4
- - name : restart systemd timesyncd
5
- command : systemctl restart systemd-timesyncd
6
-
7
4
- name : update dconf
8
5
shell : dconf update
Original file line number Diff line number Diff line change 1
1
---
2
2
# These tasks perform miscellaneous fixes to the base system.
3
3
4
- - name : add NTP servers
5
- lineinfile :
6
- dest : /etc/systemd/timesyncd.conf
7
- regexp : ' ^#?NTP='
8
- line : " NTP=10.3.3.208 10.3.3.209"
9
- notify : restart systemd timesyncd
10
- when : WF_RESTRICTED_NETWORK
11
-
12
- - name : remove source line from interfaces
13
- lineinfile :
14
- dest : /etc/network/interfaces
15
- regexp : ' ^source-'
16
- state : absent
17
-
18
- - name : Re-order PXEboot
19
- shell : efibootmgr -o {{ EFI_ORDER }}
20
- when : EFI_ORDER is defined
21
-
22
4
- name : set timezone
23
5
timezone :
24
6
name : " {{TIMEZONE}}"
46
28
- name : Force enable alt-tab for switching windows
47
29
copy : src=dconf/ dest=/etc/dconf/
48
30
notify : update dconf
49
-
50
- - name : disable mumble,selfie services
51
- service :
52
- name : " {{ item }}"
53
- state : stopped
54
- enabled : no
55
- with_items :
56
- - mumble-server
57
- - selfie
You can’t perform that action at this time.
0 commit comments