openshift: undo uneccesary changes

Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
Mark O Brien 2022-02-02 18:01:22 +00:00
parent 2d9b23d066
commit 5d906f9b8c

View file

@ -12,7 +12,7 @@
command: oc get project {{app}} command: oc get project {{app}}
register: project_exists register: project_exists
failed_when: false failed_when: false
changed_when: "project_exists.rc != 0" changed_when: "'not found' in project_exists.stderr"
- name: Copy project template - name: Copy project template
template: template:
@ -20,8 +20,8 @@
dest=/etc/openshift_apps/{{app}}/project.yml dest=/etc/openshift_apps/{{app}}/project.yml
- name: Create project - name: Create project
command: oc apply -f /etc/openshift_apps/{{app}}/project.yml shell: oc apply -f /etc/openshift_apps/{{app}}/project.yml
when: "project_exists.rc != 0" when: "'not found' in project_exists.stderr"
- name: deployer.yml - name: deployer.yml
include_role: include_role: