Skip to content
Snippets Groups Projects
Commit 66ad4db1 authored by ale's avatar ale
Browse files

Fix etcd version check

parent b0a1b8ec
No related branches found
No related tags found
No related merge requests found
...@@ -22,10 +22,12 @@ ...@@ -22,10 +22,12 @@
- shell: "/usr/bin/etcd --version | awk '/^etcd/ {print $3}'" - shell: "/usr/bin/etcd --version | awk '/^etcd/ {print $3}'"
when: etcd_bin.stat.exists when: etcd_bin.stat.exists
check_mode: false
changed_when: false
register: etcd_current_version register: etcd_current_version
- set_fact: - set_fact:
do_install_etcd: "{{ not etcd_bin.stat.exists or etcd_current_version != etcd_version }}" do_install_etcd: "{{ (not etcd_bin.stat.exists) or (etcd_current_version.stdout != etcd_version) }}"
- name: Download etcd binary - name: Download etcd binary
get_url: get_url:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment