87a0764cfb
Change-Id: If025a9d3f8e2708c1bebcb2419dd840b15cab79b
12 lines
374 B
YAML
12 lines
374 B
YAML
- 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
|