Debian Codegraph @

test/integration/targets/reboot/tasks/check_reboot.yml

raw
1 - name: Get current boot time
2 command: "{{ _boot_time_command[ansible_facts['distribution'] | lower] | default('cat /proc/sys/kernel/random/boot_id') }}"
3 register: after_boot_time
4
5 - name: Ensure system was actually rebooted
6 assert:
7 that:
8 - reboot_result is changed
9 - reboot_result.elapsed > 10
10 - before_boot_time.stdout != after_boot_time.stdout