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 10 lab: Working with roles

Lesson 10 lab: Working with roles - Ansible Tutorial

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

Lesson 10 lab: Working with roles

We are now at the end of this lesson, let's do a lab. In this lab, you are going to work with roles, obviously. So write a playbook that uses the nginx role to install nginx on all RHEL family hosts and make sure that before using the role, the following is done. Apache is removed and you update all packages that you are using. And after running the role, remove the yum package cache.

Contents