From 51407213ef500a3fe5d4ff70d875c46f34e0e59e Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Tue, 12 May 2020 15:22:32 -0500 Subject: [PATCH] Fixes #5: Use Ansible's reboot module instead of reboot command. --- roles/raspbian/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/raspbian/tasks/main.yml b/roles/raspbian/tasks/main.yml index 1bc085f..370d2c6 100644 --- a/roles/raspbian/tasks/main.yml +++ b/roles/raspbian/tasks/main.yml @@ -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") )