From cdca382f126bbe1de0a89e180eb0e825e79f7671 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 2 Sep 2019 22:37:35 +0300 Subject: [PATCH] Feat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian --- 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 1a4d1c1..17a4c65 100755 --- a/playbooks/roles/adjtimex/templates/adjtimex.sh +++ b/playbooks/roles/adjtimex/templates/adjtimex.sh @@ -10,6 +10,6 @@ tick=`adjtimex -p | awk '/tick:/ {print $2}'` && sed -i "s/^FREQ=.\+$/FREQ=$freq/" /etc/default/adjtimex && sed -i "s/^TICK=.\+$/TICK=$tick/" /etc/default/adjtimex && -ntpdate-debian && +ntpdate{% if ansible_facts.os_family == 'Debian' %}-debian{% endif %} && hwclock --systohc && { echo; echo; } | adjtimex -h ru.pool.ntp.org -- 2.39.5