--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
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.
It's a private key issue on first connection. You have to call ansible with --private-key=~/.vagrant.d/insecure_private_key
On Thursday, August 29, 2013 4:03:47 PM UTC-4, Sebastian Bulzak wrote:Did you manage to fix this error? I don't have virtualenv, but I get the same failure during "GATHERING FACTS" before the start of any play task.Regards,
S
On Tuesday, July 16, 2013 5:25:14 PM UTC-4, Joost Cassee wrote:2013/7/16 C. Morgan Hamill <cha...@wesleyan.edu>:
> Excerpts from Joost Cassee's message of 2013-07-16 07:20:12 -0400:
>> A Python project of mine uses virtualenv to isolate packages. I want to use
>> Ansible to provision a Vagrant box for testing. However, when I run Vagrant
>> it fails with this error:
>>
>> [default] Running provisioner: ansible...
>> File "/usr/bin/ansible-playbook", line 24, in <module>
>> import ansible.playbook
>> ImportError: No module named ansible.playbook
>>
>> If I deactivate the virtualenv it runs fine. I am now running "(deactivate;
>> vagrant up)" but that is not ideal. Anyone know of a better solution?
>
> Sounds to me like you don't have ansible installed in the virtualenv.
> You could either `pip install ansible` form within the virtualenv, or
> create the virtualenv with access to site packages.
Indeed, I installed Ansible system-wide. If I also install it in the
virtualenv, I get this error:
[default] Running provisioner: ansible...
PLAY [vagrant] ****************************************************************
GATHERING FACTS ***************************************************************
fatal: [127.0.0.1] => {'msg': "FAILED: (25, 'Inappropriate ioctl for
device')", 'failed': True}
Which is a much weirder error that I do not know how to debug any
further. It is an annoying property of virtualenv that it messes with
Python even for site-wide installed applications...
Regards,
Joost