]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
Rename roles/ntpd/templates/ntp.conf template to "ntp.conf.j2"
authorAlexander Barton <alex@barton.de>
Thu, 18 Dec 2014 16:28:38 +0000 (17:28 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 18 Dec 2014 16:28:38 +0000 (17:28 +0100)
roles/ntpd/tasks/main.yml
roles/ntpd/templates/ntp.conf [deleted file]
roles/ntpd/templates/ntp.conf.j2 [new file with mode: 0644]

index ffcc4eda67dfb865276ea07d8fef899ea259b624..1af5df90032cd2371311fa4a0479ad750379a71c 100644 (file)
@@ -9,7 +9,7 @@
     group=root
     mode=644
     owner=root
-    src=ntp.conf
+    src=ntp.conf.j2
   notify:
     - restart "ntp"
 
diff --git a/roles/ntpd/templates/ntp.conf b/roles/ntpd/templates/ntp.conf
deleted file mode 100644 (file)
index 044a8a4..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# /etc/ntp.conf -- configuration for ntpd
-# ---
-#  {{ ansible_managed }}
-# ---
-
-driftfile /var/lib/ntp/ntp.drift
-statsdir /var/log/ntpstats/
-
-statistics loopstats peerstats clockstats
-filegen loopstats  file loopstats  type day enable
-filegen peerstats  file peerstats  type day enable
-filegen clockstats file clockstats type day enable
-
-# NTP servers and time sources:
-server ntp1.cust.hosteurope.de
-server ntp2.cust.hosteurope.de
-server 127.127.1.0
-fudge  127.127.1.0 stratum 13
-
-# Local users may interrogate the ntp server more closely.
-restrict 127.0.0.1 nomodify
-restrict ::1 nomodify
diff --git a/roles/ntpd/templates/ntp.conf.j2 b/roles/ntpd/templates/ntp.conf.j2
new file mode 100644 (file)
index 0000000..044a8a4
--- /dev/null
@@ -0,0 +1,22 @@
+# /etc/ntp.conf -- configuration for ntpd
+# ---
+#  {{ ansible_managed }}
+# ---
+
+driftfile /var/lib/ntp/ntp.drift
+statsdir /var/log/ntpstats/
+
+statistics loopstats peerstats clockstats
+filegen loopstats  file loopstats  type day enable
+filegen peerstats  file peerstats  type day enable
+filegen clockstats file clockstats type day enable
+
+# NTP servers and time sources:
+server ntp1.cust.hosteurope.de
+server ntp2.cust.hosteurope.de
+server 127.127.1.0
+fudge  127.127.1.0 stratum 13
+
+# Local users may interrogate the ntp server more closely.
+restrict 127.0.0.1 nomodify
+restrict ::1 nomodify