ansible-babun-bootstrap icon indicating copy to clipboard operation
ansible-babun-bootstrap copied to clipboard

Vagrant private key directory

Open skrichten opened this issue 9 years ago • 1 comments

I get this error...

default: /vagrant => P:/Narrative/vagrant-drupal ==> default: Running provisioner: ansible... zsh:cd:1: no such file or directory: --user=vagrant sed: -e expression #1, char 45: unterminated address regex Usage: ansible-playbook playbook.yml

I notced that the file .babun_shim_vars has this content:

export VAGRANT_PRIV_KEY_DIRECTORY=--user=vagrant

Seems like this is getting an incorrect value. Can I get some help with this? @tiangolo ?

skrichten avatar Sep 08 '15 20:09 skrichten

@skrichten: Hmm, good question, I really never used the Vagrant shim, I always ran the playbook from outside Vagrant, giving the IP of the new Vagrant, to make sure that I would be able to replicate the Ansible install in a new VPS or physical node, not depending on Vagrant or the way it provisions its hosts.

Also, because I wanted to run playbooks that ran over several Vagrant boxes, assigning roles to each one and modifying only one file to assign each configuration to each box (in ansible hosts file) (to deploy Hadoop and Spark). And integrating Ansible in the Vagrant file makes it stick with one specific configuration for that machine, making it imperative to edit each Vagrantfile in each VM, instead of editing one ansible_hosts with all the IPs of the new Vagrant boxes.

Also, you probably should try Docker, although it changes many paradigms, it's many times a better option.

tiangolo avatar Sep 08 '15 22:09 tiangolo