AdvancedLinuxAdmin/ansible/playbooks/tasks/reboot.yml
Neil Hanlon 3917bfd364
Completely restructure into single-playbooks for AIO and Distributed
* 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
2022-02-12 16:36:34 -05:00

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 }}"