]> git.phdru.name Git - ansible.git/commitdiff
Feat(adjtimex): Warm up DNS
authorOleg Broytman <phd@phdru.name>
Sun, 2 Aug 2020 10:27:06 +0000 (13:27 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 2 Aug 2020 10:34:36 +0000 (13:34 +0300)
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 &&