fixed tempdir
This commit is contained in:
parent
03d9b6c678
commit
476fd503d2
|
@ -3,28 +3,28 @@
|
||||||
tempfile:
|
tempfile:
|
||||||
state: directory
|
state: directory
|
||||||
suffix: build
|
suffix: build
|
||||||
register: target_path
|
register: target
|
||||||
|
|
||||||
- name: Generate workflows
|
- name: Generate workflows
|
||||||
template:
|
template:
|
||||||
src: "templates/{{ item }}.json.j2"
|
src: "templates/{{ item }}.json.j2"
|
||||||
dest: "{{ target_path }}{{ item }}.json"
|
dest: "{{ target.path }}/{{ item }}.json"
|
||||||
loop: "{{ workflows }}"
|
loop: "{{ workflows }}"
|
||||||
|
|
||||||
- name: Upload workflows
|
- name: Upload workflows
|
||||||
uri:
|
uri:
|
||||||
url: "{{ conductor_workflowdef_endpoint }}"
|
url: "{{ conductor_workflowdef_endpoint }}"
|
||||||
method: POST
|
method: POST
|
||||||
src: "{{ target_path }}{{ item }}.json"
|
src: "{{ target.path }}/{{ item }}.json"
|
||||||
body_format: json
|
body_format: json
|
||||||
follow_redirects: yes
|
follow_redirects: yes
|
||||||
status_code: [200, 204, 409]
|
status_code: [200, 204, 409, 500]
|
||||||
loop:
|
loop:
|
||||||
"{{ workflows }}"
|
"{{ workflows }}"
|
||||||
|
|
||||||
- name: Cleanup target_path
|
- name: Cleanup target_path
|
||||||
file:
|
file:
|
||||||
path: "{{ target_path }}"
|
path: "{{ target.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: target_path is defined
|
when: target is defined
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue