Try setting remote_tmp to /var/tmp. There is an issue with remote_tmp
and permission downscaling, Ansible currently defaults to /tmp to
compensate for this. This setting is global but I'm working on making
it host specific and allow to specify the fallback/system temp dirs
when needed.
Ah, nvmd, git module has it's own wrapper, try setting environemnt:
TEMP or TMP=/var/tmp, git module uses mktemp function to create it's
own temporary wrapper file. (also planning on fixing this)