From 82064c6bbabaa52440214a79f59a619d786a89ba Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 2 Aug 2020 13:27:06 +0300 Subject: [PATCH] Feat(adjtimex): Warm up DNS --- playbooks/roles/adjtimex/templates/adjtimex.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/roles/adjtimex/templates/adjtimex.sh b/playbooks/roles/adjtimex/templates/adjtimex.sh index 4ee2a4b..4e39b45 100755 --- a/playbooks/roles/adjtimex/templates/adjtimex.sh +++ b/playbooks/roles/adjtimex/templates/adjtimex.sh @@ -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 && -- 2.39.5