Thanks Kai Stian Olstad,

I changed as you suggested become_user: root, working now.

On Friday, May 6, 2016 at 7:03:15 PM UTC+5:30, Sanjay Kumar wrote:
>
> Hi,
>
> I am not able copy to remote host, getting not writable error, my 
> playbook  is here.
>
> ---
>  - hosts: all
>    become: yes
>    become_user: sanjay
>    become_method: sudo
>    tasks:
>      - name: copy some file
>        copy: src=/home/sanjay/messages dest=/etc
>
> ================================================
> remote host enabled with sudo for user with NOPASSWD: All option
> ================================================
> ansible --version
> ansible 2.0.1.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = Default w/o overrides
>
>
>
>

-- 
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/161f4a78-999b-4863-abf4-cd138cde6d85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to