This is the section in which we discover Ansible roles and what we can do with them to optimize our automation scripting.
Ansible roles
What are Ansible roles?
The ultimate configuration management scripts optimization is to convert simple playbooks into Ansible roles. This gives you the ability to make a set of configuration management tasks modular and reusable, with multiple configurations. It also means that they can be easily shared when required. Ansible roles allow several related tasks, with their variables and dependencies, to be contained in a portable framework. This framework represents the breakdown of a complex playbook into multiple simple files.
An Ansible role is composed of multiple folders, each of which...