Просмотр исходного кода

detect etcd service name based on etcd runtime when restarting

Jan Chaloupka 8 лет назад
Родитель
Сommit
21b2249b30
1 измененных файлов с 1 добавлено и 1 удалено
  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