IT Certification Exams

Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory

Which command is the correct way to run the playbook /home/ansible/Buildwww.yml using the inventory file /home/ansible/inventory, assuming your present working directory is /home/ansible?

A. ansible -i inventory Build.yml
B. ansible -i inventory -p Buildwww.yml
C. ansible-playbook -i inventory -p Buildwww.yml

D. ansible-playbook -i inventory Buildwww.yml

Explanation:
This command is the correct way to run the playbook using the requested inventory