On 06. May 2016 14:46, Sanjay Kumar wrote:
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
become_user: sanjay, means Ansible will do a sudo to user sanjay. So sanjay need permission to the destination.
I guess what you really want is become_user: root , which is the default. -- Kai Stian Olstad -- 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/b4a57d3b-193f-12d2-bee0-b83c055b0b8e%40olstad.com. For more options, visit https://groups.google.com/d/optout.
