--- - name: Sync hosts: k3 gather_facts: no tasks: - name: Copy WAR to worker from source command: rsync k2:/home/user/file.war /home/user/file.war run_once: true delegate_to: localhost - name: Copy WAR to destination from worker synchronize: src: /home/user/file.war dest: /home/user/file.war