summaryrefslogtreecommitdiff
path: root/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-09-22 21:54:14 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-09-22 21:54:14 +0200
commitdeb106e0405991deb9e110e9fe40e42283a991bc (patch)
tree8fe9ccca321e8adc216e8c2f4193832138766b62 /roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
parentch-sensors1 add new 1-wire therm sensor and fix regexp (diff)
core/ntp: add support for ref-clocks
Diffstat (limited to 'roles/core/ntp/tasks/Debian_systemd-timesyncd.yml')
-rw-r--r--roles/core/ntp/tasks/Debian_systemd-timesyncd.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
index ebbe51b4..ae8068b4 100644
--- a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
+++ b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
@@ -1,8 +1,10 @@
---
-- name: make sure ntp_server is not defined
+- name: make sure ntp_server and ntp_refclocks is not defined
assert:
- that: ntp_server is not defined
- msg: "systemd-timesyncd can not be used as a NTP server"
+ that:
+ - ntp_refclocks is not defined
+ - ntp_server is not defined
+ msg: "systemd-timesyncd can not be used as a NTP server or sync to local clocks"
- name: set ntp servers
when: