Przeglądaj źródła

etcd, system_container: do not mask etcd_container

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1462087

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

+ 8 - 1
roles/etcd/tasks/system_container.yml

@@ -36,11 +36,18 @@
     name: etcd_container
     state: stopped
     enabled: no
-    masked: yes
     daemon_reload: yes
   register: task_result
   failed_when: task_result|failed and 'could not' not in task_result.msg|lower
 
+- name: Remove etcd_container.service
+  file:
+    path: /etc/systemd/system/etcd_container.service
+    state: absent
+
+- name: Systemd reload configuration
+  systemd: name=etcd_container daemon_reload=yes
+
 - name: Check for previous etcd data store
   stat:
     path: "{{ etcd_data_dir }}/member/"