Arch Linux no vagrant 1.5. * E ansible 1.5. *

Vagrantfile

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config
.vm.box = "arch"
config
.vm.box_url = "https://dl.dropboxusercontent.com/u/6750592/Arch_Linux_2013.11_x64.box"
config
.vm.synced_folder ".", "/vagrant"

config
.vm.provider "virtualbox" do |vb|
vb
.customize ["modifyvm", :id, "--memory", "512"]
end

config
.vm.provision "shell", inline: "if [ -z `which python2` ]; then sudo pacman -Sy --noconfirm python2; fi"

config
.vm.provision "ansible" do |ansible|
ansible
.sudo = "yes"
ansible
.limit = "all"
#ansible.verbose = "vvvv"
ansible
.host_key_checking = "false"
ansible
.playbook = "ansible/site.yml"
ansible
.extra_vars = {ansible_python_interpreter: "/usr/bin/python2"}
end
end

ansible / site.yml

---
- hosts: all
tasks
:
- pacman: name=net-tools state=installed
- pacman: name=python2-setuptools state=installed