diff options
| author | Tharre <tharre3@gmail.com> | 2017-08-17 05:41:07 +0200 | 
|---|---|---|
| committer | Tharre <tharre3@gmail.com> | 2017-08-17 05:41:07 +0200 | 
| commit | d427b987403610e2232b916fa7899743d6fc2128 (patch) | |
| tree | 2e326a026329f089bcab981f3306e6cd0a743827 | |
| parent | 2abc06d290dc9c8e9e13bbc2df2937e905b7b036 (diff) | |
| download | ansible-teamspeak-d427b987403610e2232b916fa7899743d6fc2128.tar.gz ansible-teamspeak-d427b987403610e2232b916fa7899743d6fc2128.tar.xz ansible-teamspeak-d427b987403610e2232b916fa7899743d6fc2128.zip | |
Replace synchronize with cp in ts3update
Using synchronize causes problems because the remote machine tries to
use the ssh key of the local machine.
| -rw-r--r-- | tasks/ts3update.yml | 6 | 
1 files 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 | 
