Merge "Collect tobiko.log file"

This commit is contained in:
Zuul 2020-02-18 11:51:22 +00:00 committed by Gerrit Code Review
commit b1727908b8
3 changed files with 17 additions and 1 deletions

View File

@ -24,3 +24,4 @@
- when: tobiko_post_run | bool
block:
- include: post/report.yaml
- include: post/log.yaml

View File

@ -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

View File

@ -15,7 +15,7 @@
{% endfor %}
{% endfor %}
vars:
sections: "{{ tobiko_default_conf | combine(tobiko_conf) }}"
sections: "{{ tobiko_default_conf | combine(tobiko_conf, recursive=True) }}"
- name: "show tobiko configuration"
debug: