diff --git a/tasks/pullcerts.yml b/tasks/pullcerts.yml index db3a871ed2a20227965eac637c5a81a1596551f3..617606f7d8e13659a32f5c61608c6f181d72a0c9 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'