0 votes
in Ansible by

What is the purpose of the Ansible Handler?

a) To store the inventory file

b) To store the sensitive data

c) To define a set of tasks that are executed only if a specific condition is met

d) To define a set of tasks that are executed at the end of a playbook run

1 Answer

0 votes
by

Solution: d) To define a set of tasks that are executed at the end of a playbook run

Explanation: An Ansible Handler is a special type of task that is defined in a playbook and is executed at the end of a playbook run. Handlers are typically used to restart services or perform other actions that need to be triggered only after a change has been made to the system.

...