From: nicoo Date: Sat, 16 Jun 2018 18:16:21 +0000 (+0200) Subject: base: Configure openntpd X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=0bdcb7f82a6ed07dbccb796a6518abda7d2bfa3a;p=noc.git base: Configure openntpd --- 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: