26db5b3b24
This change adds new roles to run logjuicer in zuul jobs: https://github.com/logjuicer/logjuicer Change-Id: I02824a18285a16c8f0be6bb96b5404aa0d601c16
16 lines
551 B
YAML
16 lines
551 B
YAML
---
|
|
- name: Install LogJuicer
|
|
shell: |
|
|
set -o pipefail
|
|
mkdir -p ~/.local/bin
|
|
curl -L https://github.com/logjuicer/logjuicer/releases/download/{{ logjuicer_version }}/logjuicer-x86_64-linux.tar.bz2 | tar -C ~/.local/ -xjvf -
|
|
tags:
|
|
# skip using file module to create the directory to keep this role short
|
|
- skip_ansible_lint
|
|
args:
|
|
executable: '/bin/bash'
|
|
|
|
- name: Set logjuicer_cmd fact
|
|
set_fact:
|
|
logjuicer_cmd: "{% if logjuicer_debug %}env LOGJUICER_LOG=debug {% endif %}{{ ansible_env.HOME }}/.local/bin/logjuicer"
|