August 2017
Intermediate to advanced
332 pages
9h 16m
English
The Ansible role is a well-structured playbook part prepared to be included in the playbooks. Roles are separate units that always have the following directory structure:
templates/tasks/handlers/vars/defaults/meta/
In each of the directories, we can define the main.yml file, which contains the playbook parts that can be included in the playbook.yml file. Continuing the MySQL case, there is a role defined on GitHub: https://github.com/geerlingguy/ansible-role-mysql. This repository contains kind-of task templates that can be used in our playbook. Let's look at a part of the ...
Read now
Unlock full access