2eed13885a
Change-Id: If4e684da58bffbe25d5bbed4dd4c56d0b5345114 Story: #2003783 Task: #26488
16 lines
371 B
YAML
16 lines
371 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Check that VM logs exist
|
|
stat:
|
|
path: '{{ ironic_bm_logs }}'
|
|
register: bm_logs_result
|
|
|
|
- name: Copy VM logs
|
|
synchronize:
|
|
src: '{{ ironic_bm_logs }}'
|
|
dest: '{{ zuul.executor.log_root }}/{{ inventory_hostname }}'
|
|
mode: pull
|
|
become: true
|
|
when: bm_logs_result.stat.exists
|