]> git.phdru.name Git - ansible.git/blob - playbooks/roles/adjtimex/templates/adjtimex.sh
Feat(adjtimex): Rewrite `adjtimex.sh`
[ansible.git] / playbooks / roles / adjtimex / templates / adjtimex.sh
1 #! /bin/sh
2
3 # Warm up DNS
4 host -t ns pool.ntp.org
5 host pool.ntp.org
6 {% if ansible_facts.os_family == 'Debian' %}
7 host 0.debian.pool.ntp.org
8 host 1.debian.pool.ntp.org
9 host 2.debian.pool.ntp.org
10 host 3.debian.pool.ntp.org
11 {% endif %}
12
13 ntpdate{% if ansible_facts.os_family == 'Debian' %}-debian{% endif %} -b &&
14 hwclock --systohc --update-drift &&
15
16 hwclock --get &&
17 exec date