0 votes
in Ansible by
What is the purpose of the Ansible ad-hoc command?

a) To execute a single task on the target hosts

b) To run a playbook on the target hosts

c) To create a new module for Ansible

d) To generate a report of the host inventory

1 Answer

0 votes
by

Answer: a) To execute a single task on the target hosts

Explanation: The Ansible ad-hoc command is used to execute a single task on the target hosts without using a playbook. It is useful for quick, one-off tasks.

...