ironic-python-agent/playbooks/legacy/ironic-python-agent-buildim.../post.yaml

44 lines
1.3 KiB
YAML

- hosts: primary
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts/tinyipa/files'
state: directory
delegate_to: localhost
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/UPLOAD_RAW/'
dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/files/'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/*
- --prune-empty-dirs
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/UPLOAD_TAR/'
dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/*
- --prune-empty-dirs
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/testrepository.subunit.gz
- --include=*/
- --exclude=*
- --prune-empty-dirs