[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2018-01-17 Thread Love
Hi Soniya, Cool, I will implement this one and let you know. Thank you very much!! On Wednesday, December 20, 2017 at 3:15:53 AM UTC-8, Soniya panwar wrote: > > Hello Love, > > You cannot implement this scenario using Notify-Handler. You will have to > use the WHEN condition (Implementation show

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-12-20 Thread Soniya panwar
Hello Love, You cannot implement this scenario using Notify-Handler. You will have to use the WHEN condition (Implementation shown in below playbook). One of the property of Handlers is that they get fired only if there is a change in state of the task which is triggering the notification (Not

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-12-07 Thread Love
Hello Soniya, Sent reply to only you as verbose output was too huge, please send me alone your email if you haven't received it so I can send you as an attachment. On Thursday, December 7, 2017 at 12:50:25 AM UTC-8, Soniya panwar wrote: > > Hello Love, > > > It will be a great help if you can sh

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-12-07 Thread Soniya panwar
Hello Love, It will be a great help if you can share the screenshot of your playbook’s output as well as the screenshot of source and destination. The above playbook is working perfectly fine in our environment. Thanks Soniya On Friday, December 1, 2017 at 6:53:51 PM UTC+5:30, Love wro

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-12-01 Thread Love
Hello Soniya, Thanks for your input, I see code executed successfully without errors but files were not copied to desired destinations. On Monday, November 27, 2017 at 8:51:44 PM UTC-8, Soniya panwar wrote: > > Hello, > > You may use below code to perform many to many copy. You may use a when

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-27 Thread Soniya panwar
Hello, You may use below code to perform many to many copy. You may use a when condition to ensure that copy task takes place only when the directory is sucessfully created. In case of directory creation getting failed, the copy task would not be performed. Below is the detailed playbook: 1.

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-27 Thread Love
This is a 100% linux/unix environment, so I did not even consider win_copy, do you think "win_copy" will work on/for "linux to linux" ? I will definitely give it a try & also need permissions intact at destination, so I would need to insert mode for those files. On Thursday, November 23, 2017

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-23 Thread lidor . ettinger
Hi You can consider something like: win_copy: src: "{{item.src}}" dest: "{{item.dest}}" with_items: - { src: path_to_src , dest: path_to_dest} - { src: path_to_src , dest: path_to_dest} - { src: path_to_src , dest: path_to_dest} Depending if you want to copy to linux machine or wi

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-23 Thread Love
Hello Soniya, Yes, First I need to check if the directory exists or NOT & create it, works perfect!! Second: After the above directory is created, I need to copy 3 different files from 3 different sources to 2 destinations. In other words many to many copy is NOT working for me. Please let m

[ansible-project] Re: Ansible copy multiple files to multiple destinations ??

2017-11-13 Thread Soniya panwar
Hello, Can you please elaborate your tasks more? 1. In first task: you are checking if the file is exist on destination server, and if not exist you will create new directory? 2. In second task: you are saying maven repo created but in this task you are coping your files src to destination. if