summaryrefslogtreecommitdiff
path: root/roles/core/ntp/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/ntp/tasks')
-rw-r--r--roles/core/ntp/tasks/chrony.yml11
-rw-r--r--roles/core/ntp/tasks/main.yml5
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/core/ntp/tasks/chrony.yml b/roles/core/ntp/tasks/chrony.yml
new file mode 100644
index 00000000..d220af30
--- /dev/null
+++ b/roles/core/ntp/tasks/chrony.yml
@@ -0,0 +1,11 @@
+---
+- name: install chrony
+ apt:
+ name: chrony
+ state: present
+
+- name: install chrony configuration
+ template:
+ src: chrony.conf.j2
+ dest: /etc/chrony/chrony.conf
+ notify: restart chrony
diff --git a/roles/core/ntp/tasks/main.yml b/roles/core/ntp/tasks/main.yml
new file mode 100644
index 00000000..77f281ff
--- /dev/null
+++ b/roles/core/ntp/tasks/main.yml
@@ -0,0 +1,5 @@
+---
+## TODO: make this work on openbsd and debian/ubuntu
+- name: run ntp-variant specific tasks
+ when: ntp_variant is defined
+ include_tasks: "{{ ntp_variant }}.yml"