]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/adjtimex/templates/adjtimex.sh
Feat(adjtimex): Warm up DNS
[ansible.git] / playbooks / roles / adjtimex / templates / adjtimex.sh
index 4ee2a4b1676dc1a776bb44ac7463f713402bec87..4e39b45953f250e2b1c7de132ad76163df5474a6 100755 (executable)
@@ -3,6 +3,16 @@
 # Stole some ideas from
 # http://support.ntp.org/bin/view/Support/ManualCalibration
 
+# Warm up DNS
+host -t ns pool.ntp.org
+host pool.ntp.org
+{% if ansible_facts.os_family == 'Debian' %}
+host 0.debian.pool.ntp.org
+host 1.debian.pool.ntp.org
+host 2.debian.pool.ntp.org
+host 3.debian.pool.ntp.org
+{% endif %}
+
 { echo; echo; } | adjtimex -l &&
 ntpdate{% if ansible_facts.os_family == 'Debian' %}-debian{% endif %} &&
 { echo; echo; } | adjtimex -l &&