fixed
This commit is contained in:
parent
e7b2660311
commit
e91955453f
|
@ -3,24 +3,24 @@
|
||||||
tempfile:
|
tempfile:
|
||||||
state: directory
|
state: directory
|
||||||
suffix: build
|
suffix: build
|
||||||
register: target_path
|
register: target
|
||||||
|
|
||||||
- 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"
|
||||||
|
|
||||||
- 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"
|
||||||
body_format: json
|
body_format: json
|
||||||
status_code: 204
|
status_code: 204
|
||||||
follow_redirects: yes
|
follow_redirects: yes
|
||||||
|
|
||||||
- name: Cleanup target_path
|
- name: Cleanup temporary target
|
||||||
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