Skip to content

Commit 2ce4691

Browse files
nickygerritsenvmcj
authored andcommitted
Only write DOMSERVER_IP to hosts file when present.
It is not present on admin machines. (cherry picked from commit fdf3c42)
1 parent 44a3eba commit 2ce4691

File tree

1 file changed

+2
-0
lines changed
  • provision-contest/ansible/roles/hosts/templates

1 file changed

+2
-0
lines changed

provision-contest/ansible/roles/hosts/templates/hosts.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ ff00::0 ip6-mcastprefix
88
ff02::1 ip6-allnodes
99
ff02::2 ip6-allrouters
1010

11+
{% if DOMSERVER_IP is defined %}
1112
{{ DOMSERVER_IP }} domjudge domserver
13+
{% endif %}
1214
{% for item in groups['all'] %}
1315
{% if hostvars[item].ansible_host is defined %}
1416
{{ hostvars[item].ansible_host }} {{ item }}

0 commit comments

Comments
 (0)