#! /bin/sh # Warm up DNS host -t ns pool.ntp.org host pool.ntp.org {% if ansible_facts.os_family == 'Debian' %} host 0.debian.pool.ntp.org host 1.debian.pool.ntp.org host 2.debian.pool.ntp.org host 3.debian.pool.ntp.org {% endif %} ntpdate{% if ansible_facts.os_family == 'Debian' %}-debian{% endif %} -b && hwclock --systohc --update-drift && hwclock --get && exec date