From: Oleg Broytman Date: Mon, 2 Sep 2019 19:37:35 +0000 (+0300) Subject: Feat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=cdca382f126bbe1de0a89e180eb0e825e79f7671;p=ansible.git Feat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian --- 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