generalized
This commit is contained in:
parent
901f8b8de8
commit
6af1aa31a8
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
target_path: "/tmp/workflows"
|
#target_path: "/tmp/workflows/"
|
||||||
|
target_path: ""
|
||||||
conductor_server: "http://conductor-dev.int.d4science.net/api"
|
conductor_server: "http://conductor-dev.int.d4science.net/api"
|
||||||
conductor_workflowdef_endpoint: "{{ conductor_server }}/metadata/workflow"
|
conductor_workflowdef_endpoint: "{{ conductor_server }}/metadata/workflow"
|
||||||
conductor_taskdef_endpoint: "{{ conductor_server }}/metadata/taskdefs"
|
conductor_taskdef_endpoint: "{{ conductor_server }}/metadata/taskdefs"
|
||||||
|
|
|
@ -2,15 +2,13 @@
|
||||||
- name: Generate taskdefs
|
- name: Generate taskdefs
|
||||||
template:
|
template:
|
||||||
src: "templates/taskdefs.json.j2"
|
src: "templates/taskdefs.json.j2"
|
||||||
#dest: "{{ target_path }}/taskdefs.json"
|
dest: "{{ target_path }}taskdefs.json"
|
||||||
dest: "taskdefs.json"
|
|
||||||
|
|
||||||
- name: Upload task definitions
|
- name: Upload task definitions
|
||||||
uri:
|
uri:
|
||||||
url: "{{ conductor_taskdef_endpoint }}"
|
url: "{{ conductor_taskdef_endpoint }}"
|
||||||
method: POST
|
method: POST
|
||||||
#src: "{{ target_path }}/taskdefs.json"
|
src: "{{ target_path }}taskdefs.json"
|
||||||
src: "taskdefs.json"
|
|
||||||
body_format: json
|
body_format: json
|
||||||
status_code: 204
|
status_code: 204
|
||||||
follow_redirects: yes
|
follow_redirects: yes
|
||||||
|
|
Loading…
Reference in New Issue