ironic-python-agent/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml
Vasyl Saienko c96d7d32aa Fix post upload images task
After migration to zuulv3/ansible upgrade post upload task start
uploading files into UPLOAD_TAR and UPLOAD_RAW directories.

This patch fixes post task to keep correct directory structure
on destination host.

Change-Id: I0e50170977841bddf3e257fe409c8eccb99dc833
2017-10-26 20:52:27 +03:00

44 lines
1.3 KiB
YAML

- hosts: primary
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts/coreos/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/coreos/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/coreos/'
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