From 05b6d41f582b1abb285bf23e919e5d298b908cd1 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 14 Mar 2018 15:03:21 +0100
Subject: [PATCH] Revert latest change as with rsync not both hosts can be
 remote

---
 tasks/pullcerts.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tasks/pullcerts.yml b/tasks/pullcerts.yml
index db3a871..617606f 100644
--- a/tasks/pullcerts.yml
+++ b/tasks/pullcerts.yml
@@ -16,8 +16,8 @@
     - '/etc/haproxy/certs'
 
 - name: "Sync files"
-  shell: rsync -rulp '{{ proxy_active_host }}:{{ item }}/' '{{ inventory_hostname }}:{{ item }}'
-  delegate_to: localhost
+  shell: rsync -rulp '{{ proxy_active_host }}:{{ item }}/' '{{ item }}'
+  delegate_to: '{{ inventory_hostname }}'
   become: no
   with_items:
     - '/etc/letsencrypt'
-- 
GitLab