openshift-apps/koschei/job: Label loop elements
This commit is contained in:
parent
f52fd338e3
commit
6cc4dd88b3
2 changed files with 6 additions and 2 deletions
|
@ -22,6 +22,8 @@
|
|||
- name: Stop backend services
|
||||
shell: oc -n koschei scale dc/{{item.name}} --replicas=0
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
|
||||
- name: Stop frontend
|
||||
shell: oc -n koschei scale dc/frontend --replicas=0
|
||||
|
@ -50,3 +52,5 @@
|
|||
- name: Start backend services
|
||||
shell: oc -n koschei scale dc/{{item.name}} --replicas=1
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- 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
|
||||
src: "{{roles_path}}/openshift-apps/{{app}}/templates/job.yml"
|
||||
dest: "/etc/openshift_apps/{{app}}/job-{{name}}.yml"
|
||||
|
||||
- name: Start job
|
||||
shell: oc -n koschei apply -f /etc/openshift_apps/{{app}}/job-{{name}}.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue