Hi Lars, Thanks for putting relevant information (like installed versions) in your questions. The ask_vault_pass and vault_password_file options were added in Vagrant 1.6.0 (see GH-3338 <https://github.com/mitchellh/vagrant/pull/3338>). An upgrade is thus needed (otherwise you can always use `raw_arguments` to work around this on Vagrant 1.5.4).
Note that http://docs.vagrantup.com/v2/provisioning/ansible.html <http://www.google.com/url?q=http%3A%2F%2Fdocs.vagrantup.com%2Fv2%2Fprovisioning%2Fansible.html&sa=D&sntz=1&usg=AFQjCNEfOI_kzoY_xxNfJsOOIzjYuMF5-g> always corresponds to the latest release of Vagrant, and for the sake of readability only the non-backwards compatible changes are mentioned (e.g. introduction of the default `limit` since Vagrant 1.5.0). For this reason, it is always a good idea to make a quick check in Vagrant's CHANGELOG.md <https://github.com/mitchellh/vagrant/blob/master/CHANGELOG.md> ;-) Gilles Le mardi 27 mai 2014 19:23:32 UTC+2, Lars Sommer a écrit : > > Mac OSX > Vagrant 1.5.4 > Ansible 1.6 > > http://docs.vagrantup.com/v2/provisioning/ansible.html > <http://www.google.com/url?q=http%3A%2F%2Fdocs.vagrantup.com%2Fv2%2Fprovisioning%2Fansible.html&sa=D&sntz=1&usg=AFQjCNEfOI_kzoY_xxNfJsOOIzjYuMF5-g> > > ******** > 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.
