1 | # {{ ansible_managed }}
|
---|
2 | #
|
---|
3 | # Undisciplined Local Clock. This is a fake driver intended for backup
|
---|
4 | # and when no outside source of synchronized time is available. The
|
---|
5 | # default stratum is usually 3, but in this case we elect to use stratum
|
---|
6 | # 0. Since the server line does not have the prefer keyword, this driver
|
---|
7 | # is never used for synchronization, unless no other other
|
---|
8 | # synchronization source is available. In case the local host is
|
---|
9 | # controlled by some external source, such as an external oscillator or
|
---|
10 | # another protocol, the prefer keyword would cause the local host to
|
---|
11 | # disregard all other synchronization sources, unless the kernel
|
---|
12 | # modifications are in use and declare an unsynchronized condition.
|
---|
13 | #
|
---|
14 |
|
---|
15 | server 127.127.1.0 # local clock
|
---|
16 | fudge 127.127.1.0 stratum 10
|
---|
17 |
|
---|
18 | # server clock.via.net
|
---|
19 | server {{ ntp_server }}
|
---|
20 |
|
---|
21 | #tos orphan 6
|
---|
22 |
|
---|
23 | #
|
---|
24 | # Drift file. Put this in a directory which the daemon can write to.
|
---|
25 | # No symbolic links allowed, either, since the daemon updates the file
|
---|
26 | # by creating a temporary in the same directory and then rename()'ing
|
---|
27 | # it to the file.
|
---|
28 | #
|
---|
29 | driftfile /var/lib/ntp/drift
|
---|
30 | multicastclient 224.0.1.1 # listen on default 224.0.1.1
|
---|
31 | broadcastdelay 0.008
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Keys file. If you want to diddle your server at run time, make a
|
---|
35 | # keys file (mode 600 for sure) and define the key number to be
|
---|
36 | # used for making requests.
|
---|
37 | # PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote
|
---|
38 | # systems might be able to reset your clock at will.
|
---|
39 | #
|
---|
40 | #keys /etc/ntp/keys
|
---|
41 | #trustedkey 65535
|
---|
42 | #requestkey 65535
|
---|
43 | #controlkey 65535
|
---|
44 |
|
---|
45 | # Permit time synchronization with our time source, but do not
|
---|
46 | # permit the source to query or modify the service on this system.
|
---|
47 | restrict default kod nomodify notrap nopeer noquery
|
---|
48 |
|
---|
49 | # Permit all access over the loopback interface. This could
|
---|
50 | # be tightened as well, but to do so would effect some of
|
---|
51 | # the administrative functions.
|
---|
52 | restrict 127.0.0.1
|
---|
53 | restrict ::1
|
---|