Collect tobiko.conf file on CI jobs
Change-Id: I9a3e158d7fb3aff86e1430b550a49977d53e5b26
This commit is contained in:
parent
135de24450
commit
0f8e15e427
@ -23,5 +23,6 @@
|
||||
|
||||
- when: tobiko_post_run | bool
|
||||
block:
|
||||
- include: post/config.yaml
|
||||
- include: post/report.yaml
|
||||
- include: post/log.yaml
|
||||
|
15
roles/tobiko/tasks/post/config.yaml
Normal file
15
roles/tobiko/tasks/post/config.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: check if {{ tobiko_conf_file }} file exists
|
||||
stat:
|
||||
path: "{{ tobiko_conf_file }}"
|
||||
register: check_tobiko_conf_file
|
||||
|
||||
|
||||
- name: "Collect {{ tobiko_conf_file }} file"
|
||||
synchronize:
|
||||
dest: "{{ collect_files_dir }}"
|
||||
mode: pull
|
||||
src: "{{ tobiko_conf_file }}"
|
||||
verify_host: true
|
||||
when: check_tobiko_conf_file.stat.exists
|
Loading…
Reference in New Issue
Block a user