Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 269a355

Browse files
DOMjudge teammeisterT
DOMjudge team
authored andcommittedMay 5, 2024·
ICPC images doesn't have IPv6
The problem is that we can't listen to IPv6 so the starting fails.
1 parent d5522ff commit 269a355

File tree

1 file changed

+18
-0
lines changed
  • provision-contest/ansible/roles/domserver/tasks

1 file changed

+18
-0
lines changed
 

‎provision-contest/ansible/roles/domserver/tasks/main.yml

+18
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@
3131
command: "{{ DJ_DIR }}/bin/dj_setup_database -s -u root bare-install"
3232
when: "'failed' in db_status.stdout"
3333

34+
- name: Install the NGINX directories before nginx exists for the next step
35+
file:
36+
state: directory
37+
path: "{{ item }}"
38+
owner: root
39+
group: root
40+
mode: 0644
41+
loop:
42+
- '/etc/nginx'
43+
- '/etc/nginx/sites-enabled'
44+
45+
- name: Drop the default nginx site before installation as we don't have IPv6
46+
copy:
47+
content: "#empty"
48+
owner: root
49+
group: root
50+
dest: /etc/nginx/sites-enabled/default
51+
3452
- name: Install required packages
3553
apt:
3654
state: present

0 commit comments

Comments
 (0)
Please sign in to comment.