Browse Source

Fix kubernetes service ip gathering.

Andrew Butcher 9 years ago
parent
commit
6a71953ec2
1 changed files with 2 additions and 5 deletions
  1. 2 5
      playbooks/common/openshift-master/config.yml

+ 2 - 5
playbooks/common/openshift-master/config.yml

@@ -358,11 +358,8 @@
   hosts: oo_first_master
   tasks:
   - name: Get master service ip
-    command: >
-      {{ openshift.common.client_binary }} -n default
-      --config={{ openshift.common.config_base }}/master/admin.kubeconfig
-      get -o template svc kubernetes --template=\\{\\{.spec.clusterIP\\}\\}
-      --output-version=v1
+    # This command has to be on a single line.
+    command: "{{ openshift.common.client_binary }} -n default --config={{ openshift.common.config_base }}/master/admin.kubeconfig get -o template svc kubernetes --template=\\{\\{.spec.clusterIP\\}\\} --output-version=v1"
     register: master_service_ip_output
     when: openshift.common.version_greater_than_3_1_or_1_1 | bool
   - set_fact: