Skip to content

erumble/vagrant-ansible-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Ansible Example

Purpose

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.

Dependencies

Vagrant Commands

  • vagrant status - Check status of VM in current directory
  • vagrant global-status - Check status of all Vagrant VMs
  • vagrant up - Create and provision VM from "not created" state
  • vagrant up - Start VM from "poweroff" or "aborted" state
  • vagrant provision - Rerun the provisioner(s)
  • vagrant halt - Stop VM from any state, same as turning off a computer
  • vagrant reload - Turn it off and on again
  • vagrant destroy - Destroy VM, same as dropping computer down a flight of stairs and shredding the HDD/SSD
  • vagrant ssh - Log in to the VM
  • vagrant help - Run it and see

About

example for using ansible and vagrant

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published