725d4c1e54
Do step 2: Reworking Legacy Jobs to be v3 Native Depends-On: https://review.openstack.org/#/c/545724/ Change-Id: Ic86e9c13d3837728bf596779f940ce405ca15cd2 Implements: blueprint migrate-to-zuulv3
14 lines
440 B
YAML
14 lines
440 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Ensure {{ ansible_user_dir }}/logs exists
|
|
become: True
|
|
file:
|
|
path: "{{ ansible_user_dir }}/logs"
|
|
state: directory
|
|
owner: "{{ ansible_user }}"
|
|
- name: Copy over docker systemd unit journals
|
|
shell:
|
|
cmd: |
|
|
sudo journalctl -o short-precise --unit docker | sudo tee {{ ansible_user_dir }}/logs/docker.txt > /dev/null
|
|
executable: /bin/bash
|