summaryrefslogtreecommitdiffstats
path: root/roles/etcd/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'roles/etcd/handlers')
-rw-r--r--roles/etcd/handlers/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/etcd/handlers/main.yml b/roles/etcd/handlers/main.yml
index 4c0efb97b..e00e1cac4 100644
--- a/roles/etcd/handlers/main.yml
+++ b/roles/etcd/handlers/main.yml
@@ -1,4 +1,5 @@
---
+
- name: restart etcd
- service: name=etcd state=restarted
- when: not etcd_service_status_changed | default(false)
+ service: name={{ etcd_service }} state=restarted
+ when: not (etcd_service_status_changed | default(false) | bool)