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 --- inventory/host_vars/ch-epimetheus.yml | 2 +- roles/core/ntp/tasks/Debian_systemd-timesyncd.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml index c088a137..1dd25f93 100644 --- a/inventory/host_vars/ch-epimetheus.yml +++ b/inventory/host_vars/ch-epimetheus.yml @@ -93,7 +93,7 @@ zfs_syncoid_sources: exclude: - '^storage/vm' 'ch-equinox-t450s': - ssh_hostname: 192.168.28.103 + ssh_hostname: 192.168.28.139 ssh_port: 222 paths: storage: 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