Hello. I have similar case, and i get this error, but i do need to create it as sudo user. I do not have root privilege. Can someone please advise?
Thank you On Friday, May 6, 2016 at 11:44:08 AM UTC-4, Kai Stian Olstad wrote: > > 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/d2d870d5-5ff6-4503-9096-0e4a183ae6eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
