I found the problem by using the -m service instead of -a.    The root user 
does not have permission to read the ansible tmp files because the home 
directory is an nfs mount.    I'll move the ansible user out of the NFS 
directory and that should fix things.

-sh-4.2$ ansible localhost -m service -a "name=rsyslog state=restarted" 
--become --become-user root
localhost | FAILED! => {
    "changed": false,
    "failed": true,
    "module_stderr": "",
    "module_stdout": "/usr/bin/python: can't open file 
'/home/servacct_ansible/.ansible/tmp/ansible-tmp-1473791346.09-103884258170467/service':
 
[Errno 13] Permission denied\r\n",
    "msg": "MODULE FAILURE",
    "parsed": false
}



>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a2f92510-6ffb-446e-ba5a-087dbaaf15f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to