fcos-pipeline-migration: Added error checking for service account

Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
David Kirwan 2021-11-04 11:50:14 +00:00
parent 592b8bb0c8
commit 688ff267e4

View file

@ -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