NTP/ansible/files/index.html

32 lines
672 B
HTML
Raw Normal View History

<html>
<head>
<title>NTP server {{ ansible_hostname }}</title>
</head>
<body>
<h1>NTP server {{ ansible_hostname }}</h1>
<h2>BGP IPs</h2>
<ul>
<li>Default ip: {{bgp_ipv6}}</li>
<li>Backup ips:
<ul>
{% for host in groups['all'] -%}
{%- if host != inventory_hostname -%}
<li>{{ hostvars[host]['bgp_ipv6'] }} ({{ host }})</li>
{% endif -%}
{% endfor %}
</ul>
</li>
</ul>
<h2>NTP sources</h2>
<ul>
{% if ansible_hostname == "chronos" %}
<li>GPS PPS</li>
{% endif %}
{% for ntp_server in ntp_servers %}
<li>{{ ntp_server }}</li>
{% endfor %}
</ul>
</body>
</html>