Automation, Orchestration, and Scripting

A playbook must run its tasks only on the hosts listed under the [dbservers] group in the inventory. Which play-level keyword selects those hosts?

Show the answer

Correct answerA. hosts: dbservers

The hosts keyword maps a play to hosts or groups defined in the inventory. The become keyword controls privilege escalation, not which machines are targeted, so it cannot select a group.