summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--playbooks/gce/openshift-node/launch.yml10
-rw-r--r--roles/openshift_node/tasks/main.yml3
2 files changed, 12 insertions, 1 deletions
diff --git a/playbooks/gce/openshift-node/launch.yml b/playbooks/gce/openshift-node/launch.yml
index f2800b061..935599efd 100644
--- a/playbooks/gce/openshift-node/launch.yml
+++ b/playbooks/gce/openshift-node/launch.yml
@@ -45,3 +45,13 @@
# Apply the configs, separate so that just the configs can be run by themselves
- include: config.yml
+
+# Always bounce service to pick up new credentials
+#- name: "Restart instances"
+# hosts: oo_hosts_to_config
+# connection: ssh
+# user: root
+# tasks:
+# - debug: var=groups.oo_hosts_to_config
+# - name: Restart OpenShift
+# service: name=openshift-node enabled=yes state=restarted
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index deff80a3d..8a0694905 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -37,8 +37,9 @@
- name: Save firewalld port for OpenShift
firewalld: port=10250/tcp permanent=true state=enabled
+ # fixme: Once the openshift_cluster playbook is published state should be started
# Always bounce service to pick up new credentials
- name: Enable OpenShift
- service: name=openshift-node enabled=yes state=started
+ service: name=openshift-node enabled=yes state=restarted
- local_action: file name={{ mktemp.stdout }} state=absent