It seems that Vagrant doesn't let me automatically provision the Ansible provisioner on Windows using Vmware.
I'm not really sure whether Ansible has to be installed on the host machine, (in my case Windows) or on the guest.
I tried to automatically provision the guest machine with the following shell script:
#!/usr/bin/env bash
apt-get update -y
apt-get install openssh-client openssh-server python-pycurl software-properties-common python-software-properties nano -y
sleep 2
echo "deb http://ppa.launchpad.net/rquillo/ansible/ubuntu precise main" >> /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/rquillo/ansible/ubuntu precise main" >> /etc/apt/sources.list
sleep 2
apt-get install ansible -y
Which installs Ansible perfectly fine but my command prompt tells me the following message:
The executable ansible-playbook Vagrant is trying to run was not found in the %PATH% variable
Upon inspecting the guest and trying to execute 'ansible-playbook' it recognized the command perfectly fine.
Then I thought maybe Vagrant requires 'ansible-playbook' in the path environment variable of the guest.
I ran the following command to add 'ansible-playbook' to my PATH variable on my linux guest machine.
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/ruby/bin/:ansible-playbook
Also didn't work.
Which draws me to the conclusion that Ansible needs to be installed on the host, because %PATH% also looks like it's required on windows.
And since Ansible is currently not available for Windows, I probably can't use Ansible on a Windows host.
Am I correct in my assumptions, or am I missing something?