[ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Anushri Mishra
k got it.thx. On Monday, August 8, 2016 at 12:56:44 PM UTC-4, Anushri Mishra wrote: > > hi, > > so this is what I have in my yml file: > > - name: Copy War File > > copy: src=externaluserwebapi.war dest=/usr/share/tomcat7/webapps > > become: True > > become_method: sudo > > and this

Re: [ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Kai Stian Olstad
On 09. aug. 2016 23:34, Anushri Mishra wrote: Thanks Kai.Yes,the files are identical.But there should be some way to overwrite it.Is there any way? No, this is part of Ansibles idempontecy[1], it does not do any changes if the files is identical. Why do you want to overwrite the file if it's i

[ansible-project] Re: Copy Module doesnt override destination file

2016-08-09 Thread Anushri Mishra
Thanks Kai.Yes,the files are identical.But there should be some way to overwrite it.Is there any way? On Monday, August 8, 2016 at 12:56:44 PM UTC-4, Anushri Mishra wrote: > > hi, > > so this is what I have in my yml file: > > - name: Copy War File > > copy: src=externaluserwebapi.war dest=