Skip to content

Commit

Permalink
adds example of setting a delegate host with a var
Browse files Browse the repository at this point in the history
  • Loading branch information
discopatrick committed Jul 12, 2016
1 parent bef74bb commit 5a96193
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playbooks/rsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@
# mode: push ## default is push
delegate_to: ansible-pocs-2

- name: sync remote folders using var as delegate
synchronize:
src: /home/admin/syncthis
dest: /home/admin
delegate_to: "{{ groups['staging'][1] }}"

0 comments on commit 5a96193

Please sign in to comment.