summaryrefslogtreecommitdiffstats
path: root/roles/openshift_serviceaccounts/tasks
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-03-23 14:41:31 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2016-03-23 14:41:31 -0400
commit2f6fc58b92232feab4b1c6e312526555edaef6f8 (patch)
tree03b91bc52a5f2257ab00c15f04dc295bc4643025 /roles/openshift_serviceaccounts/tasks
parent405b41c715312cd52ad9ec5f39de4ef9ede519c7 (diff)
parentc9beeda99895b77d748d50dc3a15823b78137749 (diff)
downloadopenshift-2f6fc58b92232feab4b1c6e312526555edaef6f8.tar.gz
openshift-2f6fc58b92232feab4b1c6e312526555edaef6f8.tar.bz2
openshift-2f6fc58b92232feab4b1c6e312526555edaef6f8.tar.xz
openshift-2f6fc58b92232feab4b1c6e312526555edaef6f8.zip
Merge pull request #1642 from wshearn/fix_serviceaccounts
Add namespace flag to oc create
Diffstat (limited to 'roles/openshift_serviceaccounts/tasks')
-rw-r--r--roles/openshift_serviceaccounts/tasks/main.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_serviceaccounts/tasks/main.yml b/roles/openshift_serviceaccounts/tasks/main.yml
index f34fa7b74..5dd28d52a 100644
--- a/roles/openshift_serviceaccounts/tasks/main.yml
+++ b/roles/openshift_serviceaccounts/tasks/main.yml
@@ -9,7 +9,8 @@
- name: create the service account
shell: >
echo {{ lookup('template', '../templates/serviceaccount.j2')
- | from_yaml | to_json | quote }} | {{ openshift.common.client_binary }} create -f -
+ | from_yaml | to_json | quote }} | {{ openshift.common.client_binary }}
+ -n {{ openshift_serviceaccounts_namespace }} create -f -
when: item.1.rc != 0
with_together:
- openshift_serviceaccounts_names