Fixed runtime log gathering

Change-Id: I1944157230ca1387d400c255e0b4020c5e532407
This commit is contained in:
Stanislav Egorov 2020-03-25 22:36:51 -07:00
parent 80d2f6b362
commit 4e50491e9c

View File

@ -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