openshift: check return code instead of stderr

Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
Mark O Brien 2022-02-02 11:51:40 +00:00
parent baf4fb0812
commit cebd4ce05f

View file

@ -21,7 +21,7 @@
- name: Create project - name: Create project
shell: oc apply -f /etc/openshift_apps/{{app}}/project.yml 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 - name: deployer.yml
include_role: include_role: