Start project
# run
vagrant up
# provision
vagrant provision
Visit http://192.168.100.100/
Ansible resources
Useful commands
# Install from roles
ansible-galaxy install -r requirements.yml -p roles
# Install role
ansible-galaxy install geerlingguy.nginx
# Check syntax
ansible-playbook playbook.yml --syntax-check
# Run playbook
ansible-playbook -i /path/to/inventory playbook.yml -u ssh_user --key-file=/path/to/ssh-key
# Run playbook on listed hosts
ansible-playbook -i "localhost," playbook.yml
# Run ad-hoc command on localhost
ansible all -i "localhost," -c local -m shell -a 'echo hello world'