Only create project if it did not exist yet
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
f51408ac1a
commit
59949db84d
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
|||
---
|
||||
- name: Determine if project already exists
|
||||
command: oc get project {{app}}
|
||||
register: project_exists
|
||||
failed_when: false
|
||||
changed_when: "'not found' in project_exists.stderr"
|
||||
|
||||
- name: project.yml
|
||||
when: "'not found' in project_exists.stderr"
|
||||
include_role:
|
||||
name: openshift/object
|
||||
vars:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue