# {{ ansible_managed }} # List of NTP servers to use. {% if inventory_hostname in groups['ntp-hosts'] %} pool ntp.tuxfamily.net iburst pool fr.pool.ntp.org iburst server 2a01:e0a:2b:2250::b {% else %} {% for server in ntp_pool %} pool {{ server }} iburst {% endfor %} initstepslew 10 {{ ntp_pool[0] }} {% endif %} # Record the rate at which the system clock gains/losses time. driftfile /var/lib/chrony/chrony.drift # In first three updates step the system clock instead of slew # if the adjustment is larger than 1 second. makestep 1.0 3 # Enable kernel synchronization of the real-time clock (RTC). rtcsync cmdport 0 user ntp {% if ntp_served_for is defined %} {% for network in ntp_served_for %} allow {{ network }} {% endfor %} {% endif %}