use copy and slurp module (#3313)

This commit is contained in:
刘旭
2018-09-27 17:12:02 +08:00
committed by k8s-ci-robot
parent 28315ca933
commit 145e5c8943
2 changed files with 47 additions and 101 deletions

View File

@@ -1,25 +1,11 @@
---
- name: install | Copy etcd and etcdctl binary from download dir
synchronize:
copy:
src: "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/{{ item }}"
dest: "{{ bin_dir }}/{{ item }}"
compress: no
perms: yes
owner: no
group: no
changed_when: false
delegate_to: "{{ inventory_hostname }}"
mode: 0755
remote_src: yes
with_items:
- "etcd"
- "etcdctl"
when: etcd_cluster_setup
- name: install | Set etcd and etcdctl binary permissions
file:
path: "{{ bin_dir }}/{{ item }}"
mode: "0755"
state: file
with_items:
- "etcd"
- "etcdctl"
- etcd
- etcdctl
when: etcd_cluster_setup