Przeglądaj źródła

Add daemon_reload parameter to service tasks

Fixes "Could not find the requested service atomic-openshift-master:
cannot enable" error during reinstall.

https://bugzilla.redhat.com/show_bug.cgi?id=1451693
Tim Bielawa 7 lat temu
rodzic
commit
1115f24364

+ 1 - 0
roles/openshift_master/tasks/main.yml

@@ -177,6 +177,7 @@
 # https://github.com/openshift/origin/issues/6447
 - name: Start and enable master
   systemd:
+    daemon_reload: yes
     name: "{{ openshift.common.service_type }}-master"
     enabled: yes
     state: started

+ 1 - 0
roles/openshift_node/tasks/main.yml

@@ -206,6 +206,7 @@
 
 - name: Start and enable node dep
   systemd:
+    daemon_reload: yes
     name: "{{ openshift.common.service_type }}-node-dep"
     enabled: yes
     state: started