ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 168 - DOP-C01 discussion

Report
Export

When running a playbook on a remote target host you receive a Python error similar to "[Errno 13] Permission denied:

`/home/nick/.ansible/tmp'. What would be the most likely cause of this problem?

A.
The user's home or `.ansible' directory on the Ansible system is not writeable by the user running the play.
Answers
A.
The user's home or `.ansible' directory on the Ansible system is not writeable by the user running the play.
B.
The specified user does not exist on the remote system.
Answers
B.
The specified user does not exist on the remote system.
C.
The user running `ansible-playbook' must run it from their own home directory.
Answers
C.
The user running `ansible-playbook' must run it from their own home directory.
D.
The user's home or `.ansible' directory on the Ansible remote host is not writeable by the user running the play
Answers
D.
The user's home or `.ansible' directory on the Ansible remote host is not writeable by the user running the play
Suggested answer: D

Explanation:

Each task that Ansible runs calls a module. When Ansible uses modules, it copies the module to the remote target system. In the error above it attempted to copy it to the remote user's home directory and found that either the home directory or the `.ansible' directory were not writeable and thus could not continue.

Reference: http://docs.ansible.com/ansible/modules_intro.html

asked 16/09/2024
Mahmoud Ziada
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first