From 09755774ac6bae11c534dd5c3f793c22fce355eb Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Tue, 20 Dec 2016 15:14:21 -0500 Subject: [PATCH] workaround case for etcdctl not yet being installed --- roles/etcd/tasks/pre_upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/etcd/tasks/pre_upgrade.yml b/roles/etcd/tasks/pre_upgrade.yml index b7574d9f2..8eda10742 100644 --- a/roles/etcd/tasks/pre_upgrade.yml +++ b/roles/etcd/tasks/pre_upgrade.yml @@ -52,5 +52,5 @@ {{ bin_dir }}/etcdctl --no-sync --peers={{ etcd_access_addresses | regex_replace('https','http') }} member list | awk -F"[: =]" '{print "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses | regex_replace('https','http') }} member update "$1" https:"$7":"$8}' | bash run_once: true - when: 'etcd_member_list is defined and "http://" in etcd_member_list.stdout' + when: 'etcd_member_list.rc != 2 and "http://" in etcd_member_list.stdout'