diff --git a/timesync.yml b/timesync.yml index 3e5af7b..c4485ce 100644 --- a/timesync.yml +++ b/timesync.yml @@ -71,14 +71,14 @@ pre_tasks: - command: cat /sys/devices/system/clocksource/clocksource0/current_clocksource - register: clocksource + register: timesync_clocksource changed_when: False roles: - role: timesync-disabled - when: clocksource.stdout == "kvm-clock" and not timesync_force + when: timesync_clocksource.stdout == "kvm-clock" and not timesync_force - role: timesync-enabled - when: clocksource.stdout != "kvm-clock" or timesync_force + when: timesync_clocksource.stdout != "kvm-clock" or timesync_force