This commit is contained in:
Marco Lettere 2020-11-19 12:16:50 +01:00
parent e7b2660311
commit e91955453f
1 changed files with 6 additions and 6 deletions

View File

@ -3,24 +3,24 @@
tempfile:
state: directory
suffix: build
register: target_path
register: target
- name: Generate taskdefs
template:
src: "templates/taskdefs.json.j2"
dest: "{{ target_path }}taskdefs.json"
dest: "{{ target.path }}/taskdefs.json"
- name: Upload task definitions
uri:
url: "{{ conductor_taskdef_endpoint }}"
method: POST
src: "{{ target_path }}taskdefs.json"
src: "{{ target.path }}/taskdefs.json"
body_format: json
status_code: 204
follow_redirects: yes
- name: Cleanup target_path
- name: Cleanup temporary target
file:
path: "{{ target_path }}"
path: "{{ target.path }}"
state: absent
when: target_path is defined
when: target is defined