zun/roles/fetch_containerd_log/tasks/main.yaml
Hongbin Lu 5b6fa1ec03 Enable CRI runtime in devstack
Depends-On: https://review.opendev.org/#/c/709328/
Implements: blueprint add-support-cri-runtime
Change-Id: Id907628e8629d2bb8447f62e96e0018f3232e08f
2020-02-23 19:30:12 +00:00

12 lines
386 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 containerd systemd unit journals
shell:
cmd: |
sudo journalctl -o short-precise --unit containerd | sudo tee {{ ansible_user_dir }}/logs/containerd.txt > /dev/null
executable: /bin/bash