zuul-jobs/roles/htmlify-logs/tasks/main.yaml
James E. Blair 74b5e0a1b3 htmlify: don't log
Don't log the complete stat output of every file we htmlify, it's
boring.

Change-Id: I72e6b6234361430a3a7a67f1235c797be4c0059e
2018-08-20 13:00:18 -07:00

16 lines
362 B
YAML

- name: Find text files to HTMLify
find:
paths: "{{ zuul.executor.log_root }}"
recurse: true
patterns:
- "*.txt"
- "*.txt.gz"
register: htmlify_files
- name: HTMLify text files
htmlify:
input: "{{ item.path }}"
output: "{{ item.path | regex_replace('\\.txt', '.html') }}"
loop: "{{ htmlify_files.files }}"
no_log: true