-
Notifications
You must be signed in to change notification settings - Fork 23.9k
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
option to auto-install python-apt module #4079
Comments
This would actually be a pretty good idea, and I don't think it needs to be an option. The module is a packaging module and has a non-stock-OS dependency, which is a problem for people with stock images and makes the initial user experience on Debian/Ubuntu rougher than on Red Hat. We should test if it's not there and then feed in the command line to auto-install it. |
We should considering to add this to the documentation. If you are doing a minimal installation, you may not have python as well. So bootstrapping ansible dependencies is not only an problem using the apt module. So better doing less magic, print an good error message so users just can do:
|
No, it should not be documentation, we should auto install the module. If someone left out Python they ignored most of the install instructions for using Ansible, so I'm less concerned with that. |
@resmo can you make a pull request for resmo@ba561db ? |
I still see this issue with Ansible 1.5.5. Which release did this change go into? |
@marcusramberg this is definitely in 1.6.0. |
Similarly, apt_repository depends on python-curl. Should this be autoinstalled too? |
@Wilfred the installation is done via apt, so deps should be installed along with that package. |
I'm getting this error with Ansible version 1.8.2. Downgrading to 1.7.2 fixes it. |
I get this error with ansible 1.9.1, and 1.7.2 will not install in a virtual env because it cannot delete stuff in /usr/share WTF |
On Ubuntu Hardy 8.04 I always get:
Is there a way to fix this? |
If the 'apt' module is used but python-apt is not installed on the target host, ansible bails out with:
which means you're always forced to do some workaround to make sure python-apt is installed.
An option to somehow auto-install python-apt if necessary would be nice.
The text was updated successfully, but these errors were encountered: