Hello,

I found an error in deploying a file through template module when using su. 
It stops with error message: "Source 
/tmp/ansible-tmp-1407982491.27-242988883727372/source not readable." 
When I checked permission on that file I saw that it was 600:

-bash-3.2$ ls -lR ansible* 
ansible-tmp-1407982491.27-242988883727372:
total 128
-rw-r--r--   1 johndoe    other      61318 Aug 14 09:14 copy
-rw-------   1 johndoe    other        220 Aug 14 09:14 source
-bash-3.2$ 



I wonder if anybody have similar problem or maybe you have any ideas what 
can cause this error?    

NB. Just in case: "copy" module works fine; I've tried to use Solaris and 
Linux as managed OS, the result was same.

PS. I've sent a bug report, and attached all details about the problem. 
Here is the link: https://github.com/ansible/ansible/issues/8594 

Here is the playbook:

- name: Template fails as su
  hosts: all
  vars:
    user_name: appadm

  tasks:
    - name: Create some configuration file
      su: yes
      su_user: "{{ user_name }}"
      template: src=config dest=/tmp/config



--
Regards,
  John

-- 
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/be36e333-31eb-46f0-98ce-f99ec5664fb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to