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.
5 lines
237 B
YAML
5 lines
237 B
YAML
- name: reboot the system
|
|
ansible.builtin.include_tasks: "../../reboot/tasks/main.yaml"
|
|
vars:
|
|
# Simply don't reboot on local connections and rely on proper handling of /var/run/reboot-required.
|
|
reboot__local_handling: ignore
|