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
sudo yum install python-pip python-devel gcc git
sudo pip install -U pip
pip install ansible==2.4.3.0
You should:
- Create an inventory file to interract with
ubuntuVMs - Use a role named
hello-world - Use a playbook named
hello-world.yml - Install
nginxand configure aserver blockin/etc/nginx/sites-available/hello-world(This resource can be useful: How To Set Up nginx Virtual Hosts ) rootshould be set to/opt/hello-world- Deploy an index.html file in
/opt/hello-worldfrom a template that says:
Hello <hello_world_msg>!
hello_world_msgshould default toWorld- Adjust the
group_vars,host_varsso thatubuntu1ubuntu2andubuntu3VMs display a different message.