Skip to content

Commit a9d6dfe

Browse files
author
DOMjudge @ NWERC
committed
Fix installing kotlin and pypy.
1 parent 630b123 commit a9d6dfe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

icpc-wf/ansible/judgehost.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- name: setup judgehost
44
hosts: judgehost
55
become: yes
6+
vars:
7+
KOTLINDEB: 'icpc-kotlinc_1.1.4-3~icpc1_all.deb'
68
handlers:
79
- name: update-grub
810
command: update-grub
@@ -55,6 +57,7 @@
5557
- php-xml
5658
- php-zip
5759
- php-mbstring
60+
- pypy
5861
- bsdmainutils
5962
- libcgroup-dev
6063
- libcurl4-gnutls-dev
@@ -65,11 +68,11 @@
6568
- debootstrap
6669

6770
- name: copy ICPC kotlin deb package
68-
copy: src=files/icpc-kotlinc_1.1.4-3~icpc_all.deb dest=/root/
71+
copy: src=files/{{KOTLINDEB}} dest=/root/
6972
register: copy_debs
7073

7174
- name: install ICPC kotlin deb package
72-
apt: deb=/root/icpc-kotlinc_1.1.4-3~icpc_all.deb
75+
apt: deb=/root/{{KOTLINDEB}}
7376
when: copy_debs.changed
7477

7578
- name: configure git as domjudge user
@@ -126,7 +129,7 @@
126129
notify: update-ca-certificates
127130

128131
- name: create chroot
129-
shell: "{{DJDIR}}/misc-tools/dj_make_chroot -i openjdk-8-jdk -l /root/icpc-kotlinc_*.deb"
132+
shell: "{{DJDIR}}/misc-tools/dj_make_chroot -y -i openjdk-8-jdk-headless,pypy -l /root/{{KOTLINDEB}}"
130133
args:
131134
creates: "/chroot/domjudge"
132135

0 commit comments

Comments
 (0)