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
+2
votes
Q: Reboot and wait for reboot to complete in Ansible playbook
asked
May 8, 2020
in
Ansible
by
SakshiSharma
#ansible-playbook-reboot
#ansible-reboot-complete
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
...