Sigh. Put the reboot in a block.

Podman gating tests failed:

   ... back_again.changed): 'dict object' has no attribute 'changed'

Previous error (ignored) was a timeout in the reboot step. I have
no idea how to fix this, so let's try putting the reboot and wait
steps into a 'block' section and removing the '.changed'.

Tested with 1minutetip. Seems to work, but the reboot was quick
so it didn't trigger the same code.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2020-05-11 13:08:56 -06:00
parent 26947b7ed2
commit 5b50b233ab

View File

@ -28,18 +28,16 @@
when: want_cgroups == 1
# If want != have, reboot
- name: reboot and wait
block:
- name: reboot
reboot:
reboot_timeout: 900
register: back_again
ignore_errors: yes
when: want_cgroups|int != current_cgroups|int
- name: wait and reconnect
wait_for_connection:
timeout: 900
register: back_again2
when: want_cgroups|int != current_cgroups|int and not back_again.changed
when: want_cgroups|int != current_cgroups|int
- set_fact:
expected_fstype: