Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What’s the difference between Ansible Playbook and Roles?
Home
DevOps
What’s the difference between Ansible Playbook and Roles?
0
votes
asked
Mar 9, 2020
in
DevOps
by
Hodge
What’s the difference between Ansible Playbook and Roles?
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 9, 2020
by
Hodge
Roles
Playbooks
Roles are reusable subsets of a play.
Playbooks contain Plays.
A set of tasks for accomplishing certain role.
Mapps among hosts and roles.
Example: common, webservers.
Example: site.yml, fooservers.yml, webservers.yml.
Related questions
0
votes
Q: what’s the difference between Ansible Playbook and Roles?
asked
Nov 27, 2019
in
DevOps
by
rajeshsharma
#playbook-vs-roles
+2
votes
Q: Ansible Looping/Interative Programming with Playbook/Roles
asked
May 8, 2020
in
Ansible
by
SakshiSharma
#ansible-looping
#ansible-interative-programming
+1
vote
Q: Ansible Conditional Programming with Playbook/Roles
asked
May 8, 2020
in
Ansible
by
SakshiSharma
#ansible-conditional-programming
#conditional-programming-ansible
0
votes
Q: What's the Ansible Playbook execution order?
asked
Jul 30, 2021
in
Ansible
by
DavidAnderson
ansible
0
votes
Q: How Ansible playbook is different from ad-hoc commands?
asked
Aug 30, 2021
in
DevOps
by
SakshiSharma
ansible-devops
devops-ansible
0
votes
Q: What’s the difference between Continuous Delivery and Continuous Deployment?
asked
Aug 28, 2021
in
DevOps
by
sharadyadav1986
continuous-delivery
continuous-deployment
0
votes
Q: what’s the use of Ansible?
asked
Mar 9, 2020
in
DevOps
by
Hodge
0
votes
Q: what’s the use of Ansible?
asked
Nov 27, 2019
in
DevOps
by
rajeshsharma
#ansible-use
0
votes
Q: Can you please explain what is the difference between playbook and play?
asked
Oct 7, 2020
in
Ansible
by
Robindeniel
#ansible-playbook
#ansible-play
0
votes
Q: Difference between play and playbook.
asked
Aug 24, 2019
in
Ansible
by
rahulsharma
#ansible
#ansible-tutorial
#ansible-modules
#ansible-galaxy
#ansible-playbook
#ansible-windows
#ansible-documentation
#ansible-copy
#ansible-debug
...