Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 306
Which capability is used by Ansible to run a set of tasks when a property is changed?
Answer options
- A. handlers
- B. playbooks
- C. roles
- D. tasks
Correct answer: A
Explanation
Handlers in Ansible are specifically designed to run when a property changes, allowing for tasks to be triggered conditionally. Playbooks, roles, and tasks serve different purposes; playbooks are collections of tasks, roles are a way to organize playbooks, and tasks are the individual actions executed during a play.