This is an old revision of the document!
INSTALLATION:
# genhost.sh file #!/bin/bash # This file creates an ini/host files with the names and mgmt values assigned by vagrant so it can be used by ansible vagrant ssh-config > ssh-config echo -e " [TEST] R1-vcp ansible_host=`egrep -A 1 "R1-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R2-vcp ansible_host=`egrep -A 1 "R2-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R3-vcp ansible_host=`egrep -A 1 "R3-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R4-vcp ansible_host=`egrep -A 1 "R4-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R5-vcp ansible_host=`egrep -A 1 "R5-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R6-vcp ansible_host=`egrep -A 1 "R6-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` R7-vcp ansible_host=`egrep -A 1 "R7-vcp" ssh-config | egrep HostName | cut -d' ' -f 4` " > ini/hosts ;
ansible-playbook -vvvv --private-key=~/.vagrant.d/insecure_private_key -u vagrant -i ini/hosts -l all playbook.yml