airshipctl/roles/airship-gather-sushy-logs/tasks/main.yaml
Alexander Hughes d5e28362f2 [#62] Standardize yaml file extensions
Currently we have mixed extensions of .yml and .yaml, this patch is
an effort to standardize all yaml documents as .yaml

Change-Id: I7eb815584de5856bbdac9a828ccad8518e8c1729
2020-02-24 14:50:32 +00:00

23 lines
597 B
YAML

- name: set redfish log dir
set_fact:
redfish_log_dir: "{{ logs_dir }}/redfish"
- name: ensure directory for redfish logs exists
file:
state: directory
path: "{{ redfish_log_dir }}"
- name: dump sushy-tool logs to directory
shell: |-
journalctl --unit sushy-tools.service > "{{ redfish_log_dir }}/sushy-tools.log"
args:
executable: /bin/bash
ignore_errors: True
become: true
- name: "Downloads logs to executor"
synchronize:
src: "{{ redfish_log_dir }}"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
ignore_errors: True