I use Vagrant and try to allow Ansible to work with it. Since I work virtualenv
with Python 3.5.0, I have to use Ansible-Local - the "main" Ansible will not work on my host because I do not run Python 2.x.
Despite this, everything works mostly, except that it vagrant up
does not find Ansible. Here is the result of the call:
==> default: Running provisioner: ansible_local...
default: Installing Ansible...
The Ansible software could not be found! Please verify
that Ansible is correctly installed on your guest system.
If you haven't installed Ansible yet, please install Ansible
on your Vagrant basebox, or enable the automated setup with the
`install` option of this provisioner. Please check
https:
for more information.
However, if I use vagrant ssh
to access the virtual machine, Ansible is explicitly installed:
vagrant@vagrant-ubuntu-trusty-64:~$ ansible --version
ansible 2.0.0.2
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
, . ansible-playbook server.yml
, SSH'd - , . , Ansible , Vagrant. Vagrantfile:
config.vm.provision "ansible_local" do |ansible|
ansible.install = true
ansible.version = "latest"
ansible.sudo = true
ansible.playbook = "server.yml"
end
. !