]> git.phdru.name Git - ansible.git/commitdiff
Feat(adjtimex): Fix pool address at the second run
authorOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 19:38:29 +0000 (22:38 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 19:48:11 +0000 (22:48 +0300)
playbooks/roles/adjtimex/templates/adjtimex.sh

index 17a4c65ccd403f13a7a51324e20d736a2c2d1227..98e11353b8c61ed339d74c9c7656df2045b5e3c4 100755 (executable)
@@ -12,4 +12,4 @@ sed -i "s/^TICK=.\+$/TICK=$tick/" /etc/default/adjtimex &&
 
 ntpdate{% if ansible_facts.os_family == 'Debian' %}-debian{% endif %} &&
 hwclock --systohc &&
-{ echo; echo; } | adjtimex -h ru.pool.ntp.org
+{ echo; echo; } | adjtimex -h {% if inventory_hostname == 'phdru.name' %}nl{% else %}ru{% endif %}.pool.ntp.org &&