X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=playbooks%2Froles%2Fadjtimex%2Ftemplates%2Fadjtimex.sh;h=4e39b45953f250e2b1c7de132ad76163df5474a6;hb=82064c6bbabaa52440214a79f59a619d786a89ba;hp=4ee2a4b1676dc1a776bb44ac7463f713402bec87;hpb=74010ef296ca4a7c89693590f38c25b5cad51311;p=ansible.git 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 &&