]> git.phdru.name Git - ansible.git/commitdiff
Feat(adjtimex): Run `ntpdate` at RedHat, `ntpdate-debian` at Debian
authorOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 19:37:35 +0000 (22:37 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 2 Sep 2019 19:48:11 +0000 (22:48 +0300)
playbooks/roles/adjtimex/templates/adjtimex.sh

index 1a4d1c159de52947be957cd07e9d753fe584d788..17a4c65ccd403f13a7a51324e20d736a2c2d1227 100755 (executable)
@@ -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