summaryrefslogtreecommitdiffstats
path: root/roles/openshift_serviceaccounts/tasks
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-30 17:08:32 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-30 17:08:32 -0500
commitebf659b0c1775f9be3e52a8ef420d568656c10f9 (patch)
tree5cd73fde4bd35e4f8731df93bd6e818e5d203ed8 /roles/openshift_serviceaccounts/tasks
parent006674871103f597d6dbb6c6cd135635489cebaf (diff)
parent526038fa15a6c02661f2315278c086477157b87f (diff)
downloadopenshift-ebf659b0c1775f9be3e52a8ef420d568656c10f9.tar.gz
openshift-ebf659b0c1775f9be3e52a8ef420d568656c10f9.tar.bz2
openshift-ebf659b0c1775f9be3e52a8ef420d568656c10f9.tar.xz
openshift-ebf659b0c1775f9be3e52a8ef420d568656c10f9.zip
Merge pull request #964 from detiber/safePatch
Safe patch
Diffstat (limited to 'roles/openshift_serviceaccounts/tasks')
-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"