From: Oleg Broytman Date: Sun, 2 Aug 2020 10:27:06 +0000 (+0300) Subject: Feat(adjtimex): Warm up DNS X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=82064c6bbabaa52440214a79f59a619d786a89ba;p=ansible.git Feat(adjtimex): Warm up DNS --- 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 &&