Update KVM setup
This commit is contained in:
parent
27806e4d43
commit
00d8d17a69
13
timesync.yml
13
timesync.yml
|
@ -73,16 +73,11 @@
|
||||||
register: clocksource
|
register: clocksource
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
# Fail if clocksource is NOT "kvm-clock"
|
|
||||||
- assert:
|
|
||||||
that:
|
|
||||||
- clocksource.stdout == "kvm-clock"
|
|
||||||
|
|
||||||
- debug: var=timesync_servers
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- { role: timesync-disabled, when: clocksource.stdout == "kvm-clock" and timesync_servers is not defined }
|
- role: timesync-disabled
|
||||||
- { role: timesync-enabled, when: clocksource.stdout != "kvm-clock" or timesync_servers is defined }
|
when: clocksource.stdout == "kvm-clock" and not timesync_force
|
||||||
|
- role: timesync-enabled
|
||||||
|
when: clocksource.stdout != "kvm-clock" or timesync_force
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue