diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-09-03 19:28:00 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-09-03 19:28:00 +0200 |
commit | 4f50d01ffea5903e129f305f3e636ee88da9e213 (patch) | |
tree | 84f9f0822c7f170450689994bf6202f9046adfdc | |
parent | chaos-at-home ap: change 2.5GHz frequencies (diff) |
core/ntp: add assertion for timesyncd and ntp_serve variable
-rw-r--r-- | inventory/host_vars/ch-epimetheus.yml | 2 | ||||
-rw-r--r-- | roles/core/ntp/tasks/Debian_systemd-timesyncd.yml | 5 |
2 files changed, 6 insertions, 1 deletions
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 |