Turns out that that did not work
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
46a1f63df0
commit
51f9ed1a9c
3 changed files with 4 additions and 8 deletions
|
@ -17,7 +17,7 @@
|
|||
- { role: openshift/object, vars: {app: bodhi, file: imagestream.yml }}
|
||||
- { role: openshift/object, vars: {app: bodhi, file: buildconfig.yml }}
|
||||
- { role: openshift/start-build, vars: {app: bodhi, name: bodhi-web-build }}
|
||||
- { role: openshift/object, vars: {app: bodhi, template: configmap.yml }}
|
||||
#- { role: openshift/object, vars: {app: bodhi, template: configmap.yml }}
|
||||
- { role: openshift/object, vars: {app: bodhi, file: service.yml }}
|
||||
- { role: openshift/object, vars: {app: bodhi, file: route.yml }}
|
||||
- { role: openshift/object, vars: {app: bodhi, file: deploymentconfig.yml }}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
template: ""
|
||||
template_fullpath: ""
|
||||
file: ""
|
|
@ -5,17 +5,17 @@
|
|||
|
||||
- name: Copy template {{template}} to temporary file ({{tmpfile.path}})
|
||||
template: src={{roles_path}}/openshift-apps/{{app}}/templates/{{template}} dest={{tmpfile.path}}
|
||||
when: template != ''
|
||||
when: template is defined
|
||||
run_once: true
|
||||
|
||||
- name: Copy template {{template_fullpath}} to temporary file ({{tmpfile.path}})
|
||||
template: src={{template_fullpath}} dest={{tmpfile.path}}
|
||||
when: template_fullpath != ''
|
||||
when: template_fullpath is defined and template is not defined
|
||||
run_once: true
|
||||
|
||||
- name: Copy file {{file}} to temporary file ({{tmpfile.path}})
|
||||
copy: src={{roles_path}}/openshift-apps/{{app}}/files/{{file}} dest={{tmpfile.path}}
|
||||
when: file != ''
|
||||
when: file is defined and template is not defined and template_fullpath is not defined
|
||||
run_once: true
|
||||
|
||||
- name: Call `oc apply` on the copied file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue