puppet-openstack-integration/playbooks/copy-logs.yaml

13 lines
374 B
YAML

- hosts: all
tasks:
- name: Collect logs if not already collected
shell:
cmd: |
set -ex
if [[ ! -d "${WORKSPACE}/logs/etc" ]]; then
./copy_logs.sh
fi
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace/puppet-openstack-integration'
environment: '{{ zuul | zuul_legacy_vars }}'