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 is what I get when I run playbook:
>
> ok: [10.1.33.227] => {"changed": false, "checksum": 
> "c93572d33bd0555a87341380ac389382c225a92d", "dest": 
> "/usr/share/tomcat7/webapps/externaluserwebapi.war", "gid": 0, "group": 
> "root", "invocation": {"module_args": {"backup": false, "content": null, 
> "delimiter": null, "dest": 
> "/usr/share/tomcat7/webapps/externaluserwebapi.war", "directory_mode": 
> null, "follow": false, "force": true, "group": null, "mode": null, 
> "original_basename": "externaluserwebapi.war", "owner": null, "regexp": 
> null, "remote_src": null, "selevel": null, "serole": null, "setype": null, 
> "seuser": null, "src": 
> "/home/ec2-user/.ansible/tmp/ansible-tmp-1470673998.42-22221732776252/source",
>  
> "validate": null}}, "md5sum": "ba5224fb84a5f82d5fa7b8a8f83c4b2e", "mode": 
> "0644", "owner": "root", "size": 17027813, "src": 
> "/home/ec2-user/.ansible/tmp/ansible-tmp-1470673998.42-22221732776252/source",
>  
> "state": "file", "uid": 0}
>
>
>
> Not sure why but copy module is not overriding the script in destination 
> directory.I read that by default it is force=yes.Please help.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/09deadee-3212-4b7a-a177-16b6149fc8c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to