Ansible roles is a structured way of grouping tasks, handlers, vars and other properties. They increase reusability. You can easily share roles through Ansible Galaxy.
Roles provide a framework for fully independent, or interdependent collections of variables, tasks, files, templates, and modules.
In Ansible, the role is the primary mechanism for breaking a playbook into multiple files. This simplifies writing complex playbooks, and it makes them easier to reuse. The breaking of playbook allows you to logically break the playbook into reusable components.
Each role is basically limited to a particular functionality or desired output, with all the necessary steps to provide that result either within that role itself or in other roles listed as dependencies.
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.
Top-level playbooks are the bridge holding the hosts from your inventory file to roles that should be applied to those hosts.
`– apache
|– README.md
|– defaults
| `– main.yml
|– files
|– handlers
| `– main.yml
|– meta
| `– main.yml
|– tasks
| `– main.yml
|– templates
|– tests
| |– inventory
| `– test.yml
`– vars
`– main.yml
My new channel link: https://www.youtube.com/channel/UC0Fdj8NtgpanHnOzLzs5ZBQ
source
Average bro
can you provide notes ?
Bro complete course upload cheyyi bro
Hi, are u avaiable for Anible live training?Please respond
Excellent!!!!
This is amazing video which is explained very clearly.
But if you be bit slow it would be fantastic Bro….Thank you
do you teach ansible online training ? if yes, please give me your contact
Sir can u share the real time project
annamata annamata enti ra babu
stop using anna mata..otherwise everything is good.
I need your help for writing playbook to setup gitlab can ping me your number
Sir plz upload nagios videos
Appreciate ur work bro..Can't find ur eng channel..pls provide link in description..
Sir kubernets full real time projects post. Cheyandi sir