generalized

This commit is contained in:
Marco Lettere 2020-11-19 11:23:39 +01:00
parent 901f8b8de8
commit 6af1aa31a8
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,6 @@
---
target_path: "/tmp/workflows"
#target_path: "/tmp/workflows/"
target_path: ""
conductor_server: "http://conductor-dev.int.d4science.net/api"
conductor_workflowdef_endpoint: "{{ conductor_server }}/metadata/workflow"
conductor_taskdef_endpoint: "{{ conductor_server }}/metadata/taskdefs"

View File

@ -2,15 +2,13 @@
- name: Generate taskdefs
template:
src: "templates/taskdefs.json.j2"
#dest: "{{ target_path }}/taskdefs.json"
dest: "taskdefs.json"
dest: "{{ target_path }}taskdefs.json"
- name: Upload task definitions
uri:
url: "{{ conductor_taskdef_endpoint }}"
method: POST
#src: "{{ target_path }}/taskdefs.json"
src: "taskdefs.json"
src: "{{ target_path }}taskdefs.json"
body_format: json
status_code: 204
follow_redirects: yes