From 4f50d01ffea5903e129f305f3e636ee88da9e213 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 3 Sep 2021 19:28:00 +0200 Subject: core/ntp: add assertion for timesyncd and ntp_serve variable --- roles/core/ntp/tasks/Debian_systemd-timesyncd.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/core') 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 -- cgit v1.2.3