From: Alexander Barton Date: Thu, 18 Dec 2014 16:28:38 +0000 (+0100) Subject: Rename roles/ntpd/templates/ntp.conf template to "ntp.conf.j2" X-Git-Url: https://arthur.barton.de/gitweb/?p=AnsibleRoles.git;a=commitdiff_plain;h=2fedf26d27f03c16e5050eea7f0b6460017f4aff Rename roles/ntpd/templates/ntp.conf template to "ntp.conf.j2" --- diff --git a/roles/ntpd/tasks/main.yml b/roles/ntpd/tasks/main.yml index ffcc4ed..1af5df9 100644 --- a/roles/ntpd/tasks/main.yml +++ b/roles/ntpd/tasks/main.yml @@ -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 index 044a8a4..0000000 --- a/roles/ntpd/templates/ntp.conf +++ /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 index 0000000..044a8a4 --- /dev/null +++ b/roles/ntpd/templates/ntp.conf.j2 @@ -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