Merge pull request #8 from geerlingguy/5-reboot-module

Fixes #5: Use Ansible's reboot module instead of reboot command.
This commit is contained in:
Julien DOCHE 2020-05-12 22:53:41 +02:00 committed by GitHub
commit 3bee6136fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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