summaryrefslogtreecommitdiffstats
path: root/roles/openshift_serviceaccounts
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 /roles/openshift_serviceaccounts
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 'roles/openshift_serviceaccounts')
-rw-r--r--roles/openshift_serviceaccounts/tasks/main.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/openshift_serviceaccounts/tasks/main.yml b/roles/openshift_serviceaccounts/tasks/main.yml
index d93a25a21..e558a83a2 100644
--- a/roles/openshift_serviceaccounts/tasks/main.yml
+++ b/roles/openshift_serviceaccounts/tasks/main.yml
@@ -13,7 +13,9 @@
changed_when: "'serviceaccounts \"{{ item }}\" already exists' not in _sa_result.stderr and _sa_result.rc == 0"
- name: Get current security context constraints
- shell: "{{ openshift.common.client_binary }} get scc privileged -o yaml > /tmp/scc.yaml"
+ shell: >
+ {{ openshift.common.client_binary }} get scc privileged -o yaml
+ --output-version=v1 > /tmp/scc.yaml
- name: Add security context constraint for {{ item }}
lineinfile:
@@ -23,4 +25,4 @@
with_items: accounts
- name: Apply new scc rules for service accounts
- command: "{{ openshift.common.client_binary }} update -f /tmp/scc.yaml"
+ command: "{{ openshift.common.client_binary }} update -f /tmp/scc.yaml --api-version=v1"