From 6af1aa31a8dfeb8e8b913d8a69758f4883563db1 Mon Sep 17 00:00:00 2001 From: Marco Lettere Date: Thu, 19 Nov 2020 11:23:39 +0100 Subject: [PATCH] generalized --- defaults/main.yaml | 3 ++- tasks/main.yaml | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 37a4ad7..0d41736 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -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" diff --git a/tasks/main.yaml b/tasks/main.yaml index 98dda6d..ef6cd38 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -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