use command instead of synchronize

This commit is contained in:
Smaine Kahlouch
2016-01-22 16:37:07 +01:00
parent 078b67c50f
commit cb59559835
8 changed files with 41 additions and 63 deletions

View File

@@ -1,12 +1,7 @@
---
- name: Calico | Install calicoctl bin
synchronize:
src: "{{ local_release_dir }}/calico/bin/calicoctl"
dest: "{{ bin_dir }}/calicoctl"
archive: no
times: yes
set_remote_user: false
delegate_to: "{{ inventory_hostname }}"
command: cp -pf "{{ local_release_dir }}/calico/bin/calicoctl" "{{ bin_dir }}/calicoctl"
changed_when: false
notify: restart calico-node
- name: Calico | install calicoctl