Browse Source

detect etcd service name based on etcd runtime when restarting

Jan Chaloupka 7 years ago
parent
commit
21b2249b30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      playbooks/common/openshift-etcd/restart.yml

+ 1 - 1
playbooks/common/openshift-etcd/restart.yml

@@ -5,5 +5,5 @@
   tasks:
     - name: restart etcd
       service:
-        name: "{{ 'etcd' if not openshift.common.is_containerized | bool else 'etcd_container' }}"
+        name: "{{ 'etcd_container' if openshift.common.etcd_runtime == 'docker' else 'etcd' }}"
         state: restarted