Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Fix check for etcd being downloaded (#102)
Browse files Browse the repository at this point in the history
The previous check for whether etcd had been downloaded was slightly
off. This change uses the proper registration state check.

Signed-off-by: Craig Tracey <craigtracey@gmail.com>
  • Loading branch information
craigtracey authored Oct 30, 2018
1 parent 4d26737 commit 751a957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/etcd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
src: "{{ etcd_release_url }}"
dest: /tmp
creates: /usr/local/bin/etcd
register: etcd_download
register: etcd_downloaded

- name: move binaries into path
copy:
Expand All @@ -15,7 +15,7 @@
with_items:
- etcd
- etcdctl
when: etcd_download.skipped == False
when: etcd_downloaded is changed

- name: set permissions on etcd binaries
file:
Expand Down

0 comments on commit 751a957

Please sign in to comment.