Skip to content

Commit

Permalink
Only write DOMSERVER_IP to hosts file when present.
Browse files Browse the repository at this point in the history
It is not present on admin machines.
  • Loading branch information
Nicky Gerritsen committed Apr 7, 2024
1 parent d5171b2 commit fdf3c42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provision-contest/ansible/roles/hosts/templates/hosts.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

{% if DOMSERVER_IP is defined %}
{{ DOMSERVER_IP }} domjudge domserver
{% endif %}
{% for item in groups['all'] %}
{% if hostvars[item].ansible_host is defined %}
{{ hostvars[item].ansible_host }} {{ item }}
Expand Down

0 comments on commit fdf3c42

Please sign in to comment.