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_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"

View File

@ -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