reboot(role): intro. reboot role, which handles local conns. gracefully
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.
This commit is contained in:
parent
72489be8bd
commit
968308eeeb
5 changed files with 59 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
- name: reboot the system
|
||||
become: true
|
||||
ansible.builtin.reboot:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue