From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Lesson 5 lab: Using a playbook to deploy a webserver

Lesson 5 lab: Using a playbook to deploy a webserver - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Lesson 5 lab: Using a playbook to deploy a webserver

We are now at the end of this lesson, let's do a lab. In this lab you are going to use a playbook to deploy a web server. So write a playbook that deploys the HTTPD web server. I would say focus on just one distribution family, you don't have to write it for Ubuntu as well as Red Hat family, that would make it unnecessarily complicated. But do make sure you meet the following requirements. The web server is installed, started and enabled. The firewall allows access. And an index.html file containing the text Hello World is copied to var www.html.

Contents