-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
Module reboot does not work on Alpine. #46723
Comments
Files identified in the description: If these files are inaccurate, please update the |
This particular big was fixed by 07ed487, which will be in Ansible 2.7.1. But this still doesn't make the plugin work with Alpine Linux. This plugin issues the command To make this plugin work properly with Alpine, proper platform support needs to be added to the plugin in order to identify distribution and version. I have a WIP PR that does work with Apline Linux. I have proper platform support on the 2.8 roadmap, so this may not be fixed until 2.8. We'll see how big a change it is once I get platform support complete. |
@samdoran, that's more than enough. It's great that the reboot module is included in 2.7, and would be great to gradually increase the list of supported distributions. |
Most linux distributions have the |
@Trozz I'm also not sure about |
The code to determine how to reboot, now looks at I guess that's not sufficient to see how to reboot. I'm not show if ansible facts like
and so on. |
@robertdebock I was trying to avoid fact gathering as part of this plugin, but it now seems that is the best approach. I've found a few distributions where I need to change behavior based on the version, and getting that reliably is not easy to do with simple tools. |
@robertdebock Can you please test with #49272 to see if that fixes your issue? |
SUMMARY
The reboot module does not work on Alpine and returns an error.
ISSUE TYPE
COMPONENT NAME
reboot
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Controlnode: Fedora
Managednode: Alpine
STEPS TO REPRODUCE
Start an Alpine virtual machine:
Create a playbook
reboot.yml
:Install that robertdebock.bootstrap role:
Fill an inventory:
Run the playbook:
EXPECTED RESULTS
A wonderful reboot and lush green "ok:"s
ACTUAL RESULTS
An error:
msg: '''dict'' object has no attribute ''rc'''
.The whole task:
The text was updated successfully, but these errors were encountered: