3917bfd364
* Tested only on distributed at this check-in * Also **temporarily** installing `patch` on the infra hosts, needed for an os_nova patch that will ultimately be removed. It isn't clear from this patch though, because the file init-nodes.yml which installs packages was renamed to tasks/init-nodes.yml. * There are some drawbacks to doing it this way, but the playbooks are serving a single purpose and don't need to be catch-all infra tooling
12 lines
256 B
YAML
12 lines
256 B
YAML
---
|
|
- name: Reboot machine
|
|
reboot:
|
|
register: reboot_register
|
|
|
|
- name: Verify reboot
|
|
assert:
|
|
that:
|
|
- "reboot_register.rebooted"
|
|
success_msg: "Machine rebooted successfully."
|
|
fail_msg: "Machine failed to boot: {{ ansible_hostname }}"
|