remote to remote host copy. using AWX

Hi All,

I am trying to copy file from remote to remote using below tasks. already I used fetch and copy module through control node. In my scenario as per security reason we won’t copy to control node.

And your question is....?

Hi,

How to copy remote to remote hosts.

Thanks

Hi,

How to copy remote to remote hosts.

Basically this should work:

- name: copy files from server_a to server B,C,D.
  synchronize:
    mode: push
    src: "/tmp"
    dest: ....
   delegate_to: server_a
   when: inventory_hostname != 'server_a'

Regards
        Racke