Problem Statement
What is the purpose of roles in Ansible?
Explanation
Roles help structure Ansible projects by organizing related automation content.
Each role contains tasks, variables, templates, files, and handlers. Roles promote modularity and reusability, allowing teams to share and maintain clean, maintainable code bases across multiple playbooks or environments.
