NTP role for ansible galaxy https://github.com/cowops/debian-ntp
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.

53 lines
1.8KB

  1. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  2. driftfile /var/lib/ntp/ntp.drift
  3. # Enable this if you want statistics to be logged.
  4. #statsdir /var/log/ntpstats/
  5. statistics loopstats peerstats clockstats
  6. filegen loopstats file loopstats type day enable
  7. filegen peerstats file peerstats type day enable
  8. filegen clockstats file clockstats type day enable
  9. # You do need to talk to an NTP server or two (or three).
  10. #server ntp.your-provider.example
  11. # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
  12. # pick a different set every time it starts up. Please consider joining the
  13. # pool: <http://www.pool.ntp.org/join.html>
  14. server {{ ntp.server }}
  15. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  16. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  17. # might also be helpful.
  18. #
  19. # Note that "restrict" applies to both servers and clients, so a configuration
  20. # that might be intended to block requests from certain clients could also end
  21. # up blocking replies from your own upstream servers.
  22. # By default, exchange time with everybody, but don't allow configuration.
  23. restrict -4 default kod notrap nomodify nopeer noquery
  24. restrict -6 default kod notrap nomodify nopeer noquery
  25. # Local users may interrogate the ntp server more closely.
  26. restrict 127.0.0.1
  27. restrict ::1
  28. # Clients from this (example!) subnet have unlimited access, but only if
  29. # cryptographically authenticated.
  30. #restrict 192.168.123.0 mask 255.255.255.0 notrust
  31. # If you want to provide time to your local subnet, change the next line.
  32. # (Again, the address is an example only.)
  33. #broadcast 192.168.123.255
  34. # If you want to listen to time broadcasts on your local subnet, de-comment the
  35. # next lines. Please do this only if you trust everybody on the network!
  36. #disable auth
  37. #broadcastclient