0 votes
in Ansible by

What is an Ansible role?

a) A set of tasks that can be reused across playbooks

b) A collection of modules that perform a specific task

c) A predefined set of variables that can be used in playbooks

d) A script that runs on the target host

1 Answer

0 votes
by

Solution: a) A set of tasks that can be reused across playbooks

Explanation: An Ansible role is a set of tasks, files, templates, and variables that can be reused across playbooks. Roles can be shared and reused, making them a powerful tool for managing infrastructure.

...