AWS DevOps Engineer Professional DOP-C01 – Question472

Ansible supports running Playbook on the host directly or via SSH. How can Ansible be told to run its playbooks directly on the host?

A.
Setting `connection: local' in the tasks that run locally.
B. Specifying `-type local' on the command line.
C. It does not need to be specified; it is the default.
D. Setting `connection: local' in the Playbook.

Correct Answer: D

Explanation:

Explanation:
Ansible can be told to run locally on the command line with the `-c’ option or can be told via the `connection: local’ declaration in the playbook. The default connection method is `remote’.
Reference:
http://docs.ansible.com/ansible/intro_inventory.html#non-ssh-connec…