NTP/ansible/files/index.html
Frank Villaro-Dixon f99ffb1a03 chrony: sources per server
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-06-20 16:45:27 +02:00

32 lines
No EOL
672 B
HTML

<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>