diff --git a/roles/tobiko-collect/tasks/main.yaml b/roles/tobiko-collect/tasks/main.yaml index d0c8a5b3e..97d5b9753 100644 --- a/roles/tobiko-collect/tasks/main.yaml +++ b/roles/tobiko-collect/tasks/main.yaml @@ -39,6 +39,13 @@ json_query("[?stat.exists].stat.path") }} +- name: "workaround for Filebeat - add newline to the end of xml report" + lineinfile: + dest: '{{ item }}' + line: '' + loop: '{{ report_files }}' + when: item.endswith('xml') + - name: "collect report files to local directory '{{ collect_dir }}'" synchronize: dest: '{{ collect_dir }}/{{ item | basename }}'