What is ansible role and how are they different from the playbook?
Answer / Swadesh Mishra
"An Ansible Role represents a reusable collection of tasks, files, variables, and dependencies that help to organize your Ansible playbooks. A Playbook, on the other hand, contains a series of plays (a play is a group of tasks) that are used to automate and orchestrate the configuration management process. While a role defines a set of configuration for a specific component, a playbook defines the order in which those roles will be executed for a given inventory of hosts."
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I handle python pathing not having a python 2.x in /usr/bin/python on a remote machine?
Compare ansible vs puppet?
What is ansible task?
How do I access a variable of the first host in a group?
How do I loop over a list of hosts in a group, inside of a template?
How to interpolate variables or dynamic variable names?
Is it unsafe to bulk-set task arguments from a variable?
Does ansible support hardware provisioning?
How ansible different from the playbook?
why don’t you ship in x format?
How ansible works?
How would you install ansible on a centos system?