summaryrefslogtreecommitdiff
path: root/roles/core/ntp/tasks/openntpd.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-11-27 23:26:04 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-11-28 00:52:04 +0100
commit221413244a408cfe27c894a8aef4c68a38348b43 (patch)
treea4eb0760f37e2910e40b13173f2e611bbd0ae9b4 /roles/core/ntp/tasks/openntpd.yml
parentmove chrony role to core/ntp (WIP) (diff)
core/ntp role add systemd-timesyncd and openntpd
Diffstat (limited to 'roles/core/ntp/tasks/openntpd.yml')
-rw-r--r--roles/core/ntp/tasks/openntpd.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/core/ntp/tasks/openntpd.yml b/roles/core/ntp/tasks/openntpd.yml
new file mode 100644
index 00000000..76f62646
--- /dev/null
+++ b/roles/core/ntp/tasks/openntpd.yml
@@ -0,0 +1,11 @@
+---
+- name: install openntpd
+ apt:
+ name: openntpd
+ state: present
+
+- name: install openntpd configuration
+ template:
+ src: openntpd.conf.j2
+ dest: /etc/openntpd/ntpd.conf
+ notify: restart openntpd