Clean up ansible-lint 4.0.0 errors
A new release of ansible-lint is out, which has now set a default line length of 120 chars. Change-Id: Iecb0d6b69ad1280b328ef4ff1568d1b41d1e6a55 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
9d07dd675e
commit
f561a95699
@ -1,14 +1,18 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Setup logs directory fact
|
||||
set_fact:
|
||||
__log_dir: "{{ zuul_output_dir }}/logs/logs/var/log/journal"
|
||||
|
||||
- name: Ensure journald logs directory exists
|
||||
file:
|
||||
path: "{{ zuul_output_dir }}/logs/logs/var/log/journal"
|
||||
path: "{{ __log_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Collect journald logs
|
||||
shell: "sudo journalctl -u {{ item }}.service | tee {{ zuul_output_dir }}/logs/logs/var/log/journal/{{ item }}.service.log"
|
||||
shell: "sudo journalctl -u {{ item }}.service | tee {{ __log_dir }}/{{ item }}.service.log"
|
||||
args:
|
||||
creates: "{{ zuul_output_dir }}/logs/logs/var/log/journal/{{ item }}.service.log"
|
||||
creates: "{{ __log_dir }}/{{ item }}.service.log"
|
||||
with_items:
|
||||
- zuul-executor
|
||||
- zuul-fingergw
|
||||
|
Loading…
x
Reference in New Issue
Block a user