provisioning attempts on VPS and VirtualBox (vagrant) Ubuntu distros leads to different results

88 views
Skip to first unread message

Gallagher Polyn

unread,
Apr 1, 2014, 3:32:06 PM4/1/14
to ansible...@googlegroups.com
I'm experimenting with Ansible (1.5) on VirtualBox (using Vagrant) and on a VPS. For this, I've been using a role from Ansible Galaxy (sgmac.rbenv - galaxy.ansible.com/list#/roles/335.)

The role installs without error on my VirtualBox Ubuntu Lucid vm, but I encounter two fatal errors on my (Digital Ocean) VPS Lucid vm:
  • Could not import python modules: apt, apt_pkg. Please install python-apt package.
  • (Then, after installing python-apt, manually,) stderr: rbenv: no such command `install'
Why would the base VMs be different? Can an issue like this be avoided by choice of another distro?

Thanks,

G

Paul Durivage

unread,
Apr 1, 2014, 4:07:21 PM4/1/14
to ansible...@googlegroups.com
I think this is a side effect of the many package managers out there, and unfortunately, is the nature of the beast.  Your VPS has chosen to image a version of Ubuntu that has fewer packages installed than your Vagrant VM.

This error you're seeing with python-apt should be resolved in the next dot release: https://github.com/ansible/ansible/issues/6530.

That's pretty weird that you're seeing some rbenv errors -- I'm not sure how they're related to python-apt.  I'm a bit out of my league here (since these are both parts of the Ruby toolchain), but I think you'd benefit from reinstalling the latest version of rbenv and ruby-build via apt.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2a255763-43e5-44e8-9f6c-ade4fc386d5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gallagher Polyn

unread,
Apr 3, 2014, 3:19:08 PM4/3/14
to ansible...@googlegroups.com
I think this is a side effect of the many package managers out there, and unfortunately, is the nature of the beast.  Your VPS has chosen to image a version of Ubuntu that has fewer packages installed than your Vagrant VM.

Yes, this is confirmed by at least one respondent to my question about this on Digital Ocean: www.digitalocean.com/community/questions/why-are-my-virtualbox-ubuntu-images-different-from-the-same-do-distros

Since my post, I've been encountering this difference between Digital Ocean Ubuntu VMs and my local VirtualBox development VMs routinely.

Thanks,

G
Reply all
Reply to author
Forward
0 new messages