From d427b987403610e2232b916fa7899743d6fc2128 Mon Sep 17 00:00:00 2001 From: Tharre Date: Thu, 17 Aug 2017 05:41:07 +0200 Subject: Replace synchronize with cp in ts3update Using synchronize causes problems because the remote machine tries to use the ssh key of the local machine. --- tasks/ts3update.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/ts3update.yml b/tasks/ts3update.yml index e5eda4c..58e9e12 100644 --- a/tasks/ts3update.yml +++ b/tasks/ts3update.yml @@ -13,10 +13,8 @@ when: ts3_systemd_service.stat.exists - name: "Update : Copy existing TeamSpeak 3 Server data to new TeamSpeak {{ teamspeak.version }} Server directory" - synchronize: - src: "{{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/" - dest: "{{ teamspeak.home }}/teamspeak3-server_linux_amd64-{{ teamspeak.version }}/teamspeak3-server_linux_amd64/" - delegate_to: "{{ inventory_hostname }}" + command: cp -r "{{ teamspeak.home }}/{{ teamspeak.symlink }}/teamspeak3-server_linux_amd64/" + "{{ teamspeak.home }}/teamspeak3-server_linux_amd64-{{ teamspeak.version }}/teamspeak3-server_linux_amd64/" notify: - Prune older TeamSpeak 3 Server versions -- cgit v1.2.3-70-g09d2