openshift: undo uneccesary changes
Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
parent
2d9b23d066
commit
5d906f9b8c
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue