Scripts and tools to build ironic-python-agent
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ironic-python-agent-builder/playbooks/ironic-python-agent-build-i.../post.yaml

43 lines
1.3 KiB

- hosts: all
tasks:
- name: Ensure artifacts directory exists
file:
path: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/files'
state: directory
delegate_to: localhost
- name: Copy files from {{ ipa_raw_dir }} on node
synchronize:
src: '{{ ipa_raw_dir }}/'
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/files/'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/*
- --prune-empty-dirs
- name: Copy files from {{ ipa_tar_dir }} on node
synchronize:
src: '{{ ipa_tar_dir }}/'
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_type }}/'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/*
- --prune-empty-dirs
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
synchronize:
src: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=*/
- --exclude=*
- --prune-empty-dirs