-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reboots not working in Ansible 2 #16
Comments
Current system should reboot at the end of the 'setup.yml', as 'expand_filesystem' notifies 'reboot'. Then again, I have a slightly related issue where password change makes authentication fail and palybook gets interrupted and no reboot... Can you provide logs? |
You are correct. Probably an Logs at the default level (I can run more verbose logging if 2.x is ever to be supported):
|
According to the Ansible issue tracker this should be fixed in 2.1 (but look at notes in the issue). |
Thanks @epleterte for the comment. See also ansible/ansible#15117 (comment) Have you verified this yourself, maybe have a playbook to demonstrate? |
Hello, I'm a beginner with Pi, and trying to install a MarinePi as instructed. So far, managed to get the Pi install running, install Ansible and create an SSH key on my own macbook. But it seems to have an issue with the install after that: `MacBook-Pro-de-Nicolas:marinepi Nicolas$ ./firstrun.sh 192.168.1.117 PLAY [all] ********************************************************************* TASK [setup] ******************************************************************* TASK [Create .ssh] ************************************************************* TASK [Push SSH key to the Raspberry Pi] **************************************** TASK [Change default user password] ******************************************** TASK [Expand filesystem] ******************************************************* TASK [Show IP Address] ********************************************************* RUNNING HANDLER [reboot] ******************************************************* PLAY RECAP ********************************************************************* Any idea? |
The reboot handler is not working properly, but everything is probably ok if you can ssh to your Pi and you can continue the provisioning. PS. For quicker troubleshooting you might want to join Signal K Slack at http://slack-invite.signalk.org/ |
A reboot module was introduced to Ansible 2.7. See PR #78 addressing this. |
setup.yml
playbook successfully callsraspi-config
to change the root partition size. However, for the change to work the device must be rebooted. Thefirstrun.sh
should probably also take care of that? Or do some mounting magic. Your thoughts?The text was updated successfully, but these errors were encountered: