summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-11-24 10:49:44 -0500
committerJason DeTiberus <jdetiber@redhat.com>2015-11-30 16:57:03 -0500
commita2dc715e54f47fa2abbac58d9d04565837bc6e56 (patch)
tree03dedec3788aa8cf1cec9cade69d39ad22b78b28 /playbooks
parent830b2891f8628828bc4385ebafb71f4174f79a05 (diff)
downloadopenshift-a2dc715e54f47fa2abbac58d9d04565837bc6e56.tar.gz
openshift-a2dc715e54f47fa2abbac58d9d04565837bc6e56.tar.bz2
openshift-a2dc715e54f47fa2abbac58d9d04565837bc6e56.tar.xz
openshift-a2dc715e54f47fa2abbac58d9d04565837bc6e56.zip
Set api version for oc commands
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-master/config.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml
index 43e7836b3..f382494bd 100644
--- a/playbooks/common/openshift-master/config.yml
+++ b/playbooks/common/openshift-master/config.yml
@@ -353,11 +353,16 @@
- role: openshift_cluster_metrics
when: openshift.common.use_cluster_metrics | bool
+ # TODO: Setting the cluster dns ip should be pushed into openshift-facts
- name: Determine cluster dns ip
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\\}\\}"
+ 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: