]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/adjtimex/templates/adjtimex.sh
Feat(adjtimex): Move to common roles
[ansible.git] / playbooks / debian / roles / adjtimex / templates / adjtimex.sh
diff --git a/playbooks/debian/roles/adjtimex/templates/adjtimex.sh b/playbooks/debian/roles/adjtimex/templates/adjtimex.sh
deleted file mode 100755 (executable)
index 1a4d1c1..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/sh
-
-{ echo; echo; } | adjtimex -h {% if inventory_hostname == 'phdru.name' %}nl{% else %}ru{% endif %}.pool.ntp.org &&
-adjtimex -r --adjust &&
-
-freq=`adjtimex -p | awk '/frequency:/ {print $2}'` &&
-tick=`adjtimex -p | awk '/tick:/ {print $2}'` &&
-#adjtimex -f "$freq" -t "$tick" &&
-
-sed -i "s/^FREQ=.\+$/FREQ=$freq/" /etc/default/adjtimex &&
-sed -i "s/^TICK=.\+$/TICK=$tick/" /etc/default/adjtimex &&
-
-ntpdate-debian &&
-hwclock --systohc &&
-{ echo; echo; } | adjtimex -h ru.pool.ntp.org