temp dir is self generated
This commit is contained in:
parent
5d0c5567f0
commit
03d9b6c678
|
@ -1,4 +1,10 @@
|
||||||
---
|
---
|
||||||
|
- name: Create temporary build directory
|
||||||
|
tempfile:
|
||||||
|
state: directory
|
||||||
|
suffix: build
|
||||||
|
register: target_path
|
||||||
|
|
||||||
- name: Generate workflows
|
- name: Generate workflows
|
||||||
template:
|
template:
|
||||||
src: "templates/{{ item }}.json.j2"
|
src: "templates/{{ item }}.json.j2"
|
||||||
|
@ -15,3 +21,10 @@
|
||||||
status_code: [200, 204, 409]
|
status_code: [200, 204, 409]
|
||||||
loop:
|
loop:
|
||||||
"{{ workflows }}"
|
"{{ workflows }}"
|
||||||
|
|
||||||
|
- name: Cleanup target_path
|
||||||
|
file:
|
||||||
|
path: "{{ target_path }}"
|
||||||
|
state: absent
|
||||||
|
when: target_path is defined
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue