Skip to content

daverod24/poc-lab-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poc-lab-vagrant

Build Status

In this laboratory I am testing the execution of an ansible playbook that allows me to create an attribute in /etc/sudoers.d/ so that a user has sudo

Quick Start Guide

1 - Install dependencies (VirtualBox, Vagrant, Ansible)

  1. Download and install VirtualBox.
  2. Download and install Vagrant.
  3. [Mac/Linux only] Install Ansible.

Note for Windows users: This guide assumes you're on a Mac or Linux host. Windows hosts are unsupported at this time.

2 - Build the Virtual Machine

  1. Download this project and put it wherever you want.
  2. Open Terminal, cd to this directory (containing the Vagrantfile and this README file).
  3. Run ansible-galaxy install -r requirements.yml -p ./provision/roles to install required Ansible roles.
  4. Type in vagrant up, and let Vagrant do its magic.

Note: If there are any errors during the course of running vagrant up, and it drops you back to your command prompt, just run vagrant provision to continue building the VM from where you left off. If there are still errors after doing this a few times, post an issue to this project's issue queue on GitHub with the error.

Notes

  • To shut down the virtual machine, enter vagrant halt in the Terminal in the same folder that has the Vagrantfile. To destroy it completely (if you want to save a little disk space, or want to rebuild it from scratch with vagrant up again), type in vagrant destroy.

About the Author

I use the libraries and best practices of ansible devops that he create Jeff Geerling to make projects easier and standardized.

About

poc-lab-vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published