Mac OSX
Vagrant 1.5.4
Ansible 1.6

http://docs.vagrantup.com/v2/provisioning/ansible.html

********
My VagrantFile:
********
#~/Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're 
doing!
VAGRANTFILE_API_VERSION = "2"
PLAYBOOK_PATH = "/Users/lars/Repositories/company/ansible/playbooks/"
PLAYBOOK = "web/core/alpha.yml"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "hashicorp/precise64"
  config.vm.box_url = "http://files.vagrantup.com/precise32.box";

  config.vm.provision "ansible" do |ansible|
    ansible.playbook = PLAYBOOK_PATH + PLAYBOOK
    ansible.sudo = true
    ansible.verbose = 'vvvv'
    ansible.inventory_path = 
'/Users/lars/Repositories/company/ansible/inventories/1'
    ansible.ask_vault_pass = 'true'
    #ansible.vault_password_file = '/Users/lars/Documents/vault'
    ansible.extra_vars = {
      ntp_server: "pool.ntp.org",
      group: "dev_web_alpha"
    }
    #ansible.tags = ''
  end

  config.vm.provider "virtualbox" do |v|
    v.memory = 2048
    v.cpus = 2
  end

end

********
Error:
********
"MacBook-Pro:playbooks$ vagrant provision
There are errors in the configuration of this machine. Please fix
the following errors and try again:

ansible provisioner:
* The following settings shouldn't exist: ask_vault_pass"

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to