What is ansible role and how are they different from the playbook?
Answer Posted / 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 |
Post New Answer View All Answers
Have you worked with ansible before? Please share your experience.
How to access a variable of the first host in a group?
why don’t you ship in x format?
What features does the ansible tower provide?
How would you access a variable of the first host in a group?
How do I access a variable name programmatically?
How ansible works?
How would you install ansible on a centos system?
How do I access shell environment variables?
What is ansible?
How do I handle python pathing not having a python 2.x in /usr/bin/python on a remote machine?
How to keep secret data in a playbook?
Suppose you’re using ansible to configure the production environment and your playbook uses an encrypted file. Encrypted files prompt the user to enter passwords. But since ansible is used for automation, can this process be automated?
How is ansible different from puppet?
What is the use of ansible?