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.

56 lines
1.9KB

  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 0.{{ ntp.server }}
  15. server 1.{{ ntp.server }}
  16. server 2.{{ ntp.server }}
  17. server 3.{{ ntp.server }}
  18. # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
  19. # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
  20. # might also be helpful.
  21. #
  22. # Note that "restrict" applies to both servers and clients, so a configuration
  23. # that might be intended to block requests from certain clients could also end
  24. # up blocking replies from your own upstream servers.
  25. # By default, exchange time with everybody, but don't allow configuration.
  26. restrict -4 default kod notrap nomodify nopeer noquery
  27. restrict -6 default kod notrap nomodify nopeer noquery
  28. # Local users may interrogate the ntp server more closely.
  29. restrict 127.0.0.1
  30. restrict ::1
  31. # Clients from this (example!) subnet have unlimited access, but only if
  32. # cryptographically authenticated.
  33. #restrict 192.168.123.0 mask 255.255.255.0 notrust
  34. # If you want to provide time to your local subnet, change the next line.
  35. # (Again, the address is an example only.)
  36. #broadcast 192.168.123.255
  37. # If you want to listen to time broadcasts on your local subnet, de-comment the
  38. # next lines. Please do this only if you trust everybody on the network!
  39. #disable auth
  40. #broadcastclient