base: Configure openntpd
authornicoo <nicoo@realraum.at>
Sat, 16 Jun 2018 18:16:21 +0000 (20:16 +0200)
committernicoo <nicoo@realraum.at>
Sun, 17 Jun 2018 14:27:59 +0000 (16:27 +0200)
ansible/roles/base/handlers/main.yml
ansible/roles/base/tasks/main.yml

index 822887e..a86fcde 100644 (file)
@@ -3,3 +3,8 @@
   service:
     name: ssh
     state: restarted
+
+- name: restart openntpd
+  service:
+    name: openntpd
+    state: restarted
index 155f03b..c168799 100644 (file)
   apt:
     name: openntpd
 
+- name: configure openntpd
+  copy:
+    dest: /etc/openntpd/ntpd.conf
+    content: |
+      # Use the ffgraz.net NTP server
+      servers ntp.ffgraz.net weight 3
+
+      # Use some servers announced from the NTP Pool
+      servers 0.debian.pool.ntp.org
+      servers 1.debian.pool.ntp.org
+
+  notify: restart openntpd
+
 - name: make sure grml-(etc|scripts)-core is not installed
   apt:
     name: