Skip to content

This repo is made for a workshop to introduce ansible, vagrant, and docker to people. It contains a vagrant cluster, installing docker, and deploying a docker hello-world application on the cluster.

Notifications You must be signed in to change notification settings

josephkphan/AnsibleWorkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-playbooks workshop

This repo is made for a workshop to introduce ansible, vagrant, and docker to people. It contains a vagrant cluster, installing docker, and deploying a docker hello-world application on the cluster.

Prereqs

The following Software needs to be installed:

Vagrant

Go to https://www.vagrantup.com/downloads.html and download the appropriate package

Ansible

Mac OS X:
       sudo easy_install pip sudo pip install ansible

CentOS/Fedora:
       sudo yum install ansible

Ubuntu:
       sudo apt-get install software-properties-common sudo apt-add-repository ppa:ansible/ansible        sudo apt-get update sudo apt-get install ansible

Commands Used during Workshop

Vagrant Commands Used

Bring up vagrant box cluster (3)
       vagrant up

Tear down vagrant box cluster (3)
       vagrant destroy

Ssh into vagrant box to see results
       vagrant ssh (vagrant1 | vagrant2 | vagrant3)

Ansible Commands Used

Copy Over a txt file onto box vagrant3
       ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant install_file.yml -l vagrant3

Install Docker 17
       ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant install_docker.yml

Deploy Hello World Application
       ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant deploy_app.yml

Other Notes

The docker role should be credited to https://github.com/geerlingguy/ansible-role-docker
The Hello World Application should be credited to https://hub.docker.com/_/hello-world/

About

This repo is made for a workshop to introduce ansible, vagrant, and docker to people. It contains a vagrant cluster, installing docker, and deploying a docker hello-world application on the cluster.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published