From 00d8d17a6929397d978e886c2a34a6736a535d1d Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Wed, 2 Dec 2020 22:44:40 +0100 Subject: [PATCH] Update KVM setup --- timesync.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/timesync.yml b/timesync.yml index 153d181..d18a9c8 100644 --- a/timesync.yml +++ b/timesync.yml @@ -73,16 +73,11 @@ register: clocksource changed_when: False - # Fail if clocksource is NOT "kvm-clock" - - assert: - that: - - clocksource.stdout == "kvm-clock" - - - debug: var=timesync_servers - roles: - - { role: timesync-disabled, when: clocksource.stdout == "kvm-clock" and timesync_servers is not defined } - - { role: timesync-enabled, when: clocksource.stdout != "kvm-clock" or timesync_servers is defined } + - role: timesync-disabled + when: clocksource.stdout == "kvm-clock" and not timesync_force + - role: timesync-enabled + when: clocksource.stdout != "kvm-clock" or timesync_force