Merge "Collect tobiko.log file"
This commit is contained in:
commit
b1727908b8
|
@ -24,3 +24,4 @@
|
||||||
- when: tobiko_post_run | bool
|
- when: tobiko_post_run | bool
|
||||||
block:
|
block:
|
||||||
- include: post/report.yaml
|
- include: post/report.yaml
|
||||||
|
- include: post/log.yaml
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: check if {{ tobiko_log_file }} file exists
|
||||||
|
stat:
|
||||||
|
path: "{{ tobiko_log_file }}"
|
||||||
|
register: check_tobiko_log_file
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Collect {{ tobiko_log_file }} file"
|
||||||
|
synchronize:
|
||||||
|
dest: "{{ collect_files_dir }}"
|
||||||
|
mode: pull
|
||||||
|
src: "{{ tobiko_log_file }}"
|
||||||
|
verify_host: true
|
||||||
|
when: check_tobiko_log_file.stat.exists
|
|
@ -15,7 +15,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
vars:
|
vars:
|
||||||
sections: "{{ tobiko_default_conf | combine(tobiko_conf) }}"
|
sections: "{{ tobiko_default_conf | combine(tobiko_conf, recursive=True) }}"
|
||||||
|
|
||||||
- name: "show tobiko configuration"
|
- name: "show tobiko configuration"
|
||||||
debug:
|
debug:
|
||||||
|
|
Loading…
Reference in New Issue