ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 85 - DOP-C01 discussion

Report
Export

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.
Answers
A.
Setting ‘connection: local’ in the tasks that run locally.
B.
Specifying ‘-type local’ on the command line.
Answers
B.
Specifying ‘-type local’ on the command line.
C.
It does not need to be specified; it is the default.
Answers
C.
It does not need to be specified; it is the default.
D.
Setting ‘connection: local’ in the Playbook.
Answers
D.
Setting ‘connection: local’ in the Playbook.
Suggested answer: D

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-connection-types

asked 16/09/2024
Lucas de Paula Mello
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first