Skip to content

Commit fdf3c42

Browse files
committedApr 7, 2024
Only write DOMSERVER_IP to hosts file when present.
It is not present on admin machines.
1 parent d5171b2 commit fdf3c42

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

+2
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)