From 3e8a65de7c12aa8457252483b281b9dee33f59c5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 2 Sep 2019 22:38:29 +0300 Subject: [PATCH] Feat(adjtimex): Fix pool address at the second run --- playbooks/roles/adjtimex/templates/adjtimex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 2.39.5