]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/ntpd/templates/ntp.conf.j2
ntpd: Make list of NTP servers configurable
[AnsibleRoles.git] / roles / ntpd / templates / ntp.conf.j2
index 044a8a4ab77c8150d6cc8430f3431382f8a0eca7..2b9362d7a82931334e5014c48a4084ff27dc87ee 100644 (file)
@@ -12,8 +12,9 @@ filegen peerstats  file peerstats  type day enable
 filegen clockstats file clockstats type day enable
 
 # NTP servers and time sources:
-server ntp1.cust.hosteurope.de
-server ntp2.cust.hosteurope.de
+{% for server in ntp_servers.split() %}
+server {{ server }}
+{% endfor %}
 server 127.127.1.0
 fudge  127.127.1.0 stratum 13