openshift: check return code instead of stderr
Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
parent
baf4fb0812
commit
cebd4ce05f
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
- name: Create project
|
||||
shell: oc apply -f /etc/openshift_apps/{{app}}/project.yml
|
||||
when: "'not found' in project_exists.stderr"
|
||||
when: "project_exists.rc != 0"
|
||||
|
||||
- name: deployer.yml
|
||||
include_role:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue