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/Debian_systemd-timesyncd.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
index 20a5f379..ebbe51b4 100644
--- a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
+++ b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml
@@ -1,4 +1,9 @@
---
+- name: make sure ntp_server is not defined
+ assert:
+ that: ntp_server is not defined
+ msg: "systemd-timesyncd can not be used as a NTP server"
+
- name: set ntp servers
when:
- ntp_client is defined