From bffe6663b78fa9319a55ecc3a87e15a378157de5 Mon Sep 17 00:00:00 2001 From: Wesley Hearn Date: Mon, 21 Mar 2016 16:57:51 -0400 Subject: Add namespace flag to oc create --- roles/openshift_serviceaccounts/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3 From 9bfa86809a86f03171f9c306fdc83862da470147 Mon Sep 17 00:00:00 2001 From: Wesley Hearn Date: Tue, 22 Mar 2016 13:44:21 -0400 Subject: Fix line break --- roles/openshift_serviceaccounts/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/openshift_serviceaccounts/tasks/main.yml b/roles/openshift_serviceaccounts/tasks/main.yml index 528797e49..7d13dbbeb 100644 --- a/roles/openshift_serviceaccounts/tasks/main.yml +++ b/roles/openshift_serviceaccounts/tasks/main.yml @@ -9,8 +9,8 @@ - name: create the service account shell: > echo {{ lookup('template', '../templates/serviceaccount.j2') - | from_yaml | to_json | quote }} - | {{ openshift.common.client_binary }} -n {{ openshift_serviceaccounts_namespace }} 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 -- cgit v1.2.3 From c9beeda99895b77d748d50dc3a15823b78137749 Mon Sep 17 00:00:00 2001 From: Wesley Hearn Date: Tue, 22 Mar 2016 14:35:27 -0400 Subject: Fix indention --- roles/openshift_serviceaccounts/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/openshift_serviceaccounts/tasks/main.yml b/roles/openshift_serviceaccounts/tasks/main.yml index 7d13dbbeb..5dd28d52a 100644 --- a/roles/openshift_serviceaccounts/tasks/main.yml +++ b/roles/openshift_serviceaccounts/tasks/main.yml @@ -9,8 +9,8 @@ - name: create the service account shell: > echo {{ lookup('template', '../templates/serviceaccount.j2') - | from_yaml | to_json | quote }} | {{ openshift.common.client_binary }} - -n {{ openshift_serviceaccounts_namespace }} 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 -- cgit v1.2.3