Skip to content

A Ubuntu Virtual Machine to manage Workspace on Windows & Running Ansible

Notifications You must be signed in to change notification settings

giappv/vagrant_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Ubuntu Virtual Machine to manage Workspace on Windows & Running Ansible

Getting Started


  1. Download and Install VirtualBox
  2. Download and Install Vagrant
  3. Download and Install GitBash
  4. Checkout Source code & Run Vagrant Up
#open gitbash
cd yourworkspace
git [email protected]:giappv/vagrant_ansible.git
cd vagrant_ansible
vagrant plugin install vagrant-hostmanager
vagrant up

Checking Ansible is working

vagrant ssh #login to VM
ansible --version #check if ansible installed

It gave me this output, means ansible is working

ansible 2.1.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
cd /vagrant #this folder will be mounted to yourworkspace folder, 
ls -la #output will be similar as the below
drwxrwxrwx  1 vagrant vagrant    0 Oct 24 10:15 site1.com
drwxrwxrwx  1 vagrant vagrant    0 Oct 24 10:16 site2.com
drwxrwxrwx  1 vagrant vagrant    0 Oct 24 10:16 site3.com
drwxrwxrwx  1 vagrant vagrant    0 Oct 24 10:16 site4.com
drwxrwxrwx  1 vagrant vagrant    0 Oct 24 10:17 site5.com
drwxrwxrwx  1 vagrant vagrant 4096 Oct 24 11:00 vagrant_ansible

Now we can walk to any specific project easily and run ansible there, for example:

cd site1.com/devops/ansible
ansible-playbook -i inventories/staging playbook.yml

I made a blog for explaining detail why I created this project. Please leave your comment if you like.

About

A Ubuntu Virtual Machine to manage Workspace on Windows & Running Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages