This Vagrantfile provisions a CentOS 7 VM using Ansible.
The base image was created by this Packer template, and is hosted on Atlas.
The playbook will set custom facts for use in a subsequent play, and then install Ruby and Nginx through the use of Ansible Roles.
It serves as an example for how to automatically pull down roles from Ansible Galaxy, use them, and how to set custom facts.
vagrant status
- Check status of VM in current directoryvagrant global-status
- Check status of all Vagrant VMsvagrant up
- Create and provision VM from "not created" statevagrant up
- Start VM from "poweroff" or "aborted" statevagrant provision
- Rerun the provisioner(s)vagrant halt
- Stop VM from any state, same as turning off a computervagrant reload
- Turn it off and on againvagrant destroy
- Destroy VM, same as dropping computer down a flight of stairs and shredding the HDD/SSDvagrant ssh
- Log in to the VMvagrant help
- Run it and see