refactor to base on calico_version

This commit is contained in:
Matthew Mosesohn
2018-09-13 18:05:10 +03:00
parent 55d76ea3d8
commit c83350e597
2 changed files with 11 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
run_once: yes
- name: "Get current version of calico cluster version"
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version' | awk '{ print $3}'"
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version:' | awk '{ print $3}'"
register: calico_version_on_server
run_once: yes
delegate_to: "{{ groups['kube-master'][0] }}"