Ansible Training
Ansible Training
BVS DEPARTMENT
VINOTHKUMAR S
SEP 8, 2020
• Why YAML?
• YAML was specifically created to work well for common
use cases such as configuration files, log files and cross
language sharing files and data sharing.
• YAML data is portable between programming languages
• Easily readable by humans
• Ease of implementation and usage
CONFIDENTIAL | Copyright © ANRITSU
8
ANSIBLE - ARCHITECTURE
• Handlers:
name: handler_name
CONFIDENTIAL | Copyright © ANRITSU
26
ANSIBLE - ROLES
• Roles provide a framework for fully independent, or
interdependent collections of variables, tasks, files,
templates, and modules
• Roles are not playbooks. Roles are small functionality
which can be independently used but have to be used
within playbooks. There is no way to directly execute a
role. Roles have no explicit setting for which host the role
will apply to.
Syntax for Roles creation:
• Ansible-galaxy init <role_name>