Przeglądaj źródła

etcd, system_container: do not enable system etcd

if etcd is installed and it is not the system container, only unmask
the service but do not enable it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 7 lat temu
rodzic
commit
c01d8bc6f6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      roles/etcd/tasks/system_container.yml

+ 2 - 2
roles/etcd/tasks/system_container.yml

@@ -24,12 +24,12 @@
   systemd:
     name: etcd
     state: stopped
-    enabled: yes
+    enabled: no
     masked: no
     daemon_reload: yes
   register: task_result
   failed_when: task_result|failed and 'could not' not in task_result.msg|lower
-  when: "'etcd' in etcd_result.stdout"
+  when: "'etcd' not in etcd_result.stdout"
 
 - name: Disable etcd_container
   systemd: