can you show test with the issue at the play level? i cannot
reproduce, i used the following:

- hosts: testmachine
  sudo: yes
  sudo_user: nobody
  tasks:
    - template:
        src: testfile
        dest: /tmp/z
        mode: 0600
with -vvvv i can see:
/bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible,
key=cxwmwhlrjpfrghjcbaabmtadbvgcgouq] password: " -u nobody /bin/sh -c
'"'"'echo BECOME-SUCCESS-cxwmwhlrjpfrghjcbaabmtadbvgcgouq; LANG=C
LC_CTYPE=C /usr/bin/python
/tmp/ansible-tmp-1426689710.81-275921666186925/copy'"'"''

-- 
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/CAJ5XC8kVkJSQm3oK%2BAWY3M5MW4no9xzdvqMyLm_6gj4-ZhH1Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to