Fixed runtime log gathering
Change-Id: I1944157230ca1387d400c255e0b4020c5e532407
This commit is contained in:
parent
80d2f6b362
commit
4e50491e9c
@ -13,7 +13,7 @@
|
||||
- name: dump docker logs
|
||||
shell: |-
|
||||
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:
|
||||
executable: /bin/bash
|
||||
become: true
|
||||
@ -21,7 +21,7 @@
|
||||
- name: dump containerd logs
|
||||
shell: |-
|
||||
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:
|
||||
executable: /bin/bash
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user