From 1a409dc7ae90bdf0d94a441fa763ea3d960f7d8e Mon Sep 17 00:00:00 2001 From: Samuel Liu Date: Sat, 23 Jan 2021 12:41:39 +0800 Subject: [PATCH] Add download bin tasks (#7131) * Add downlaod bin tasks * Add tags never and etcd * yamllint --- roles/etcd/tasks/install_host.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/roles/etcd/tasks/install_host.yml b/roles/etcd/tasks/install_host.yml index 0f5f5d3d8..3196df5c6 100644 --- a/roles/etcd/tasks/install_host.yml +++ b/roles/etcd/tasks/install_host.yml @@ -1,4 +1,13 @@ --- +- name: install | Download etcd and etcdctl + include_tasks: "../../download/tasks/download_file.yml" + vars: + download: "{{ download_defaults | combine(downloads.etcd) }}" + when: etcd_cluster_setup + tags: + - never + - etcd + - name: install | Copy etcd and etcdctl binary from download dir copy: src: "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-{{ host_architecture }}/{{ item }}" @@ -6,6 +15,6 @@ mode: 0755 remote_src: yes with_items: - - etcd - - etcdctl + - etcd + - etcdctl when: etcd_cluster_setup