You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
801 B

  1. # {{ ansible_managed }}
  2. # Specify one or more NTP servers.
  3. # Use public servers from the pool.ntp.org project.
  4. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  5. {% for server in ntp_servers %}
  6. server {{ server }}
  7. {% endfor %}
  8. # Record the rate at which the system clock gains/losses time.
  9. driftfile /var/lib/chrony/drift
  10. {% if ntp_tinker_panic is sameas true %}
  11. # Force time sync if the drift exceeds the threshold specified
  12. # Useful for VMs that can be paused and much later resumed.
  13. makestep 1.0 -1
  14. {% else %}
  15. # Allow the system clock to be stepped in the first three updates
  16. # if its offset is larger than 1 second.
  17. makestep 1.0 3
  18. {% endif %}
  19. # Enable kernel synchronization of the real-time clock (RTC).
  20. rtcsync
  21. # Specify directory for log files.
  22. logdir /var/log/chrony