Update KVM setup

This commit is contained in:
Sven Velt 2020-12-02 22:44:40 +01:00
parent 27806e4d43
commit 00d8d17a69

View file

@ -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