Also use this role instead of plain ansible.builtin.reboot. This is in preparation for using ansible_pull as we don't want to have ansible.builtin.reboot fail local playbook runs.
6 lines
222 B
YAML
6 lines
222 B
YAML
- name: reboot the system
|
|
ansible.builtin.include_role:
|
|
role: reboot
|
|
vars:
|
|
# Simply don't reboot on local connections and rely on proper handling of /var/run/reboot-required.
|
|
reboot__local_handling: ignore
|