AWS DevOps Engineer Professional DOP-C01 – Question456

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.
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.
D. The user's home or `.ansible' directory on the Ansible remote host is not writeable by the user running the play

Correct Answer: D

Explanation:

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