openshift-apps/koschei/job: Unconditionally apply Job object
This commit is contained in:
parent
4eff6615bf
commit
f52fd338e3
1 changed files with 6 additions and 4 deletions
|
@ -1,8 +1,10 @@
|
|||
- name: Copy job template to a temporary file
|
||||
template:
|
||||
src: {{roles_path}}/openshift-apps/{{app}}/templates/job.yml
|
||||
dest: /etc/openshift_apps/{{app}}/job-{{name}}.yml
|
||||
|
||||
- name: Start job
|
||||
include_role: name=openshift/object
|
||||
vars:
|
||||
template: job.yml
|
||||
objectname: job-{{name}}.yml
|
||||
shell: oc -n koschei apply -f /etc/openshift_apps/{{app}}/job-{{name}}.yml
|
||||
|
||||
- name: Wait for job to complete
|
||||
shell: oc -n koschei wait job/job-{{name}} --for condition=complete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue