Skip to content

DevOps 360° Hello-World is an easy Ansible automation you can write in a couple of minutes just to get your hands on Ansible!

Notifications You must be signed in to change notification settings

Lowess/devops-360-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

DevOps 360° Hello-World

DevOps 360° Hello-World is the first playbook introduction to automation with Ansible. For more details about the project, please check: http://slides.com/floriandambrine/devops360

0. Setup the Ansible controller

sudo yum install python-pip python-devel gcc git
sudo pip install -U pip
pip install ansible==2.4.3.0

1. Write the hello-world automation

You should:

  • Create an inventory file to interract with ubuntu VMs
  • Use a role named hello-world
  • Use a playbook named hello-world.yml
  • Install nginx and configure a server block in /etc/nginx/sites-available/hello-world (This resource can be useful: How To Set Up nginx Virtual Hosts )
  • root should be set to /opt/hello-world
  • Deploy an index.html file in /opt/hello-world from a template that says:
Hello <hello_world_msg>!
  • hello_world_msg should default to World
  • Adjust the group_vars, host_vars so that ubuntu1 ubuntu2 and ubuntu3 VMs display a different message.

About

DevOps 360° Hello-World is an easy Ansible automation you can write in a couple of minutes just to get your hands on Ansible!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published