diff options
author | Wesley Hearn <whearn@redhat.com> | 2016-03-21 16:57:51 -0400 |
---|---|---|
committer | Wesley Hearn <whearn@redhat.com> | 2016-03-21 16:57:51 -0400 |
commit | bffe6663b78fa9319a55ecc3a87e15a378157de5 (patch) | |
tree | 936e97c2125e4bc47da3d8f5e4d1e710f4a6e5bf | |
parent | 394cb8776bdd7ece0258fd9d3b33ccbd95473b51 (diff) | |
download | openshift-bffe6663b78fa9319a55ecc3a87e15a378157de5.tar.gz openshift-bffe6663b78fa9319a55ecc3a87e15a378157de5.tar.bz2 openshift-bffe6663b78fa9319a55ecc3a87e15a378157de5.tar.xz openshift-bffe6663b78fa9319a55ecc3a87e15a378157de5.zip |
Add namespace flag to oc create
-rw-r--r-- | roles/openshift_serviceaccounts/tasks/main.yml | 3 |
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..528797e49 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 |