From 0bdcb7f82a6ed07dbccb796a6518abda7d2bfa3a Mon Sep 17 00:00:00 2001 From: nicoo Date: Sat, 16 Jun 2018 20:16:21 +0200 Subject: [PATCH] base: Configure openntpd --- ansible/roles/base/handlers/main.yml | 5 +++++ ansible/roles/base/tasks/main.yml | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ansible/roles/base/handlers/main.yml b/ansible/roles/base/handlers/main.yml index 822887e..a86fcde 100644 --- a/ansible/roles/base/handlers/main.yml +++ b/ansible/roles/base/handlers/main.yml @@ -3,3 +3,8 @@ service: name: ssh state: restarted + +- name: restart openntpd + service: + name: openntpd + state: restarted diff --git a/ansible/roles/base/tasks/main.yml b/ansible/roles/base/tasks/main.yml index 155f03b..c168799 100644 --- a/ansible/roles/base/tasks/main.yml +++ b/ansible/roles/base/tasks/main.yml @@ -90,6 +90,19 @@ 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: -- 1.7.10.4