*Update:*

I ran the playbook as user root (however, i do not want to do that in 
production): 
```
ansible-playbook -vvv -i inventory.yml playbook.yml -u *root *-K
```

I am still getiing output:
```
TASK [local/system-backup : Copy file] 
**********************************************************************************************
task path: /home/bob/roles/fakerole/tasks/main.yml:22
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: bob
<localhost> EXEC /bin/sh -c 'echo ~bob && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo 
/home/bob/.ansible/tmp/ansible-tmp-1547058060.7636507-83324408153016 `" && 
echo ansible-tmp-1547058060.7636507-83324408153016="` echo 
/home/bob/.ansible/tmp/ansible-tmp-1547058060.7636507-83324408153016 `" ) 
&& sleep 0'
fatal: [localhost]: FAILED! => {
    "msg": "an error occurred while trying to read the file 
'/etc/fakepath/file': [Errno 13] Permission denied: b'/etc/fakepath/file'"
}
```

Note: the user in the output is still `CONNECTION FOR USER: bob` although i 
ran the playbook with option `-u root`.
My understanding seems flawed somewhere as i was expecting connection to be 
for root now.


Best,
Ajay Tripathi

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/87d190c1-e362-4b4b-8adf-e6c19df47d26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to