summaryrefslogtreecommitdiffstats
path: root/roles/etcd
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2015-12-18 17:16:17 -0500
committerAndrew Butcher <abutcher@redhat.com>2015-12-26 08:59:49 -0500
commit3f85ca5e72538110a4962cdb4961fa9e9f122648 (patch)
treeb98e2e19e491aacfdf942caa3ca82416808fa49b /roles/etcd
parent7cee7585ba41958d9e99fbbb56fa0d748567a770 (diff)
downloadopenshift-3f85ca5e72538110a4962cdb4961fa9e9f122648.tar.gz
openshift-3f85ca5e72538110a4962cdb4961fa9e9f122648.tar.bz2
openshift-3f85ca5e72538110a4962cdb4961fa9e9f122648.tar.xz
openshift-3f85ca5e72538110a4962cdb4961fa9e9f122648.zip
Fix restart handlers.
Diffstat (limited to 'roles/etcd')
-rw-r--r--roles/etcd/handlers/main.yml2
-rw-r--r--roles/etcd/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/etcd/handlers/main.yml b/roles/etcd/handlers/main.yml
index aeb26d6b2..e00e1cac4 100644
--- a/roles/etcd/handlers/main.yml
+++ b/roles/etcd/handlers/main.yml
@@ -2,4 +2,4 @@
- name: restart etcd
service: name={{ etcd_service }} state=restarted
- when: not etcd_service_status_changed | default(false)
+ when: not (etcd_service_status_changed | default(false) | bool)
diff --git a/roles/etcd/tasks/main.yml b/roles/etcd/tasks/main.yml
index 2160ed817..663f6e537 100644
--- a/roles/etcd/tasks/main.yml
+++ b/roles/etcd/tasks/main.yml
@@ -104,4 +104,4 @@
register: start_result
- set_fact:
- etcd_service_status_changed = start_result | changed
+ etcd_service_status_changed = "{{ start_result | changed }}"