From: Oleg Broytman Date: Mon, 2 Sep 2019 19:38:29 +0000 (+0300) Subject: Feat(adjtimex): Fix pool address at the second run X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=3e8a65de7c12aa8457252483b281b9dee33f59c5 Feat(adjtimex): Fix pool address at the second run --- diff --git a/playbooks/roles/adjtimex/templates/adjtimex.sh b/playbooks/roles/adjtimex/templates/adjtimex.sh index 17a4c65..98e1135 100755 --- a/playbooks/roles/adjtimex/templates/adjtimex.sh +++ b/playbooks/roles/adjtimex/templates/adjtimex.sh @@ -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 &&