You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
745 B
YAML
32 lines
745 B
YAML
---
|
|
- name: Generate taskdefs
|
|
template:
|
|
src: "templates/taskdefs.json.j2"
|
|
dest: "{{ target_path }}/taskdefs.json"
|
|
|
|
- name: Upload task definitions
|
|
uri:
|
|
url: "{{ conductor_taskdef_endpoint }}"
|
|
method: POST
|
|
src: "{{ target_path }}/taskdefs.json"
|
|
body_format: json
|
|
status_code: 204
|
|
follow_redirects: yes
|
|
|
|
- name: Generate workflows
|
|
template:
|
|
src: "templates/{{ item }}.json.j2"
|
|
dest: "{{ target_path }}/{{ item }}.json"
|
|
loop: "{{ workflows }}"
|
|
|
|
- name: Upload workflows
|
|
uri:
|
|
url: "{{ conductor_workflowdef_endpoint }}"
|
|
method: POST
|
|
src: "{{ target_path }}/{{ item }}.json"
|
|
body_format: json
|
|
follow_redirects: yes
|
|
status_code: [200, 204, 409]
|
|
loop:
|
|
"{{ workflows }}"
|