Fixes #5: Use Ansible's reboot module instead of reboot command.

This commit is contained in:
Jeff Geerling
2020-05-12 15:22:32 -05:00
parent 62914a0cfc
commit 51407213ef

View File

@@ -17,8 +17,7 @@
register: boot_cmdline register: boot_cmdline
- name: Rebooting on Raspbian - name: Rebooting on Raspbian
shell: reboot now reboot:
ignore_errors: true
when: ( boot_cmdline is changed ) when: ( boot_cmdline is changed )
and and
( ansible_facts.architecture is search("arm") ) ( ansible_facts.architecture is search("arm") )