From 567078d7c3ac7190d6748f0cfcd535e82912a12b Mon Sep 17 00:00:00 2001 From: kadecole Date: Thu, 18 Jun 2015 00:23:06 -0500 Subject: Add a managed ntp.conf template. --- templates/ntp.conf.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 templates/ntp.conf.j2 (limited to 'templates') diff --git a/templates/ntp.conf.j2 b/templates/ntp.conf.j2 new file mode 100644 index 0000000..b0ddb0c --- /dev/null +++ b/templates/ntp.conf.j2 @@ -0,0 +1,22 @@ +# {{ ansible_managed }} + +# Default NTP servers for the operating system. +{% for item in ntp_servers %} +server {{ item }} +{% endfor %} + +# Security: +# +# By default, only allow time queries and block all other requests +# from unauthenticated clients. +# +# See http://support.ntp.org/bin/view/Support/AccessRestrictions +# for more information. +# +restrict default kod limited nomodify notrap nopeer noquery +restrict -6 default kod limited nomodify notrap nopeer noquery + +# The following settings allow unrestricted access from the localhost +restrict 127.0.0.1 +restrict -6 ::1 +restrict 127.127.1.0 -- cgit v1.2.3