Fixed runtime log gathering
Change-Id: I1944157230ca1387d400c255e0b4020c5e532407
This commit is contained in:
parent
80d2f6b362
commit
4e50491e9c
@ -13,7 +13,7 @@
|
|||||||
- name: dump docker logs
|
- name: dump docker logs
|
||||||
shell: |-
|
shell: |-
|
||||||
journalctl --unit "docker" --no-pager > "{{ runtime_logs_dir }}/docker.log"
|
journalctl --unit "docker" --no-pager > "{{ runtime_logs_dir }}/docker.log"
|
||||||
when: ansible_facts.services['docker'] is defined
|
when: ansible_facts.services['docker.service'] is defined
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: true
|
become: true
|
||||||
@ -21,7 +21,7 @@
|
|||||||
- name: dump containerd logs
|
- name: dump containerd logs
|
||||||
shell: |-
|
shell: |-
|
||||||
journalctl --unit "containerd" --no-pager > "{{ runtime_logs_dir }}/containerd.log"
|
journalctl --unit "containerd" --no-pager > "{{ runtime_logs_dir }}/containerd.log"
|
||||||
when: ansible_facts.services['containerd'] is defined
|
when: ansible_facts.services['containerd.service'] is defined
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user