You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Ansible deployment, please provide an exit code when reboot of the system is required.
So far this is how I solve this problem:
# tasks/main.yml
- name: Update Raspberry Pi kernel and firmwareansible.builtin.shell:
cmd: echo y | rpi-updateregister: rpi_update_resultchanged_when: "rpi_update_result.stdout | regex_search('reboot is needed')"notify: Reboot machine
- name: Force all notified handlers to run at this point, not waiting for normal sync pointsansible.builtin.meta: flush_handlers# handlers/main.yml
- name: Reboot machineansible.builtin.reboot:
The text was updated successfully, but these errors were encountered:
For Ansible deployment, please provide an exit code when reboot of the system is required.
So far this is how I solve this problem:
The text was updated successfully, but these errors were encountered: