fcos-pipeline-migration: Added error checking for service account
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
592b8bb0c8
commit
688ff267e4
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
# create the service account
|
||||
- name: create service account
|
||||
command: "/root/bin/oc create sa {{ project_service_account }} -n {{ project_name }}"
|
||||
register: sa_resource_create
|
||||
failed_when: sa_resource_create.stderr != '' and 'already exists' not in sa_resource_create.stderr
|
||||
|
||||
# apply the anyuid-setfcap SCC to the service account
|
||||
- name: create service account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue