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.

45 lines
1.6 KiB

  1. # {{ ansible_managed }}
  2. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  3. driftfile {{ ntp_driftfile }}
  4. {% if ntp_tinker_panic is sameas true %}
  5. # Always reset the clock, even if the new time is more than 1000s away
  6. # from the current system time. Useful for VMs that can be paused
  7. # and much later resumed.
  8. tinker panic 0
  9. {% endif %}
  10. # Specify one or more NTP servers.
  11. # Use public servers from the pool.ntp.org project.
  12. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  13. {% for item in ntp_servers %}
  14. pool {{ item }}
  15. {% endfor %}
  16. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  17. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  18. # might also be helpful.
  19. #
  20. # Note that "restrict" applies to both servers and clients, so a configuration
  21. # that might be intended to block requests from certain clients could also end
  22. # up blocking replies from your own upstream servers.
  23. # By default, exchange time with everybody, but don't allow configuration.
  24. restrict -4 default kod notrap nomodify nopeer noquery limited
  25. restrict -6 default kod notrap nomodify nopeer noquery limited
  26. # Local users may interrogate the ntp server more closely.
  27. {% for item in ntp_restrict %}
  28. restrict {{ item }}
  29. {% endfor %}
  30. # Needed for adding pool entries
  31. restrict source notrap nomodify noquery
  32. # Disable the monitoring facility to prevent amplification attacks using ntpdc
  33. # monlist command when default restrict does not include the noquery flag. See
  34. # CVE-2013-5211 for more details.
  35. # Note: Monitoring will not be disabled with the limited restriction flag.
  36. disable monitor