- Ansible 1.8.4
- CentOS 6.6
- Vagrant
Edit for your environment.
- group_vars/all
- inventory/hosts
- Setup server
$ vagrant up
$ vagrant ssh-config > ssh.config
$ ansible-playbook -i logpot/inventory/hosts logpot/setup.yml
- Change ssh settings in Vagrantfile
Edit ssh_port
, ssh_username
, ssh_key
and, uncomment private_key_path
.
- Delete
private_key
$ rm -f .vagrant/machines/dev_server/virtualbox/private_key
- Reload Vagrant settings
$ vagrant reload
- Setup application environment
$ vagrant ssh-config >! ssh.config
$ ansible-playbook -i logpot/inventory/hosts logpot/app.yml