Browse Source

Merge pull request #86 from detiber/manageExternal

Disable master,node services when externally managed
Thomas Wiest 10 years ago
parent
commit
c11293dc16
2 changed files with 8 additions and 0 deletions
  1. 4 0
      roles/openshift_master/tasks/main.yml
  2. 4 0
      roles/openshift_node/tasks/main.yml

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

@@ -31,3 +31,7 @@
 - name: Start and enable openshift-master
   service: name=openshift-master enabled=yes state=started
   when: not openshift_master_manage_service_externally
+
+- name: Disable openshift-master if openshift-master is managed externally
+  service: name=openshift-master enabled=false
+  when: openshift_master_manage_service_externally

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

@@ -40,3 +40,7 @@
 - name: Start and enable openshift-node
   service: name=openshift-node enabled=yes state=restarted
   when: not openshift_node_manage_service_externally
+
+- name: Disable openshift-node if openshift-node is managed externally
+  service: name=openshift-node enabled=false
+  when: openshift_node_manage_service_externally