in DevOps by
what’s the difference between Ansible Playbook and Roles?

1 Answer

0 votes

      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
asked Aug 30, 2021 in DevOps by SakshiSharma
0 votes
asked Mar 9, 2020 in DevOps by Hodge
0 votes
asked Aug 24, 2019 in Ansible by rahulsharma
0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson