98d6d62c3a
This patch starts "ansiblization" of the image building script, while also cleaning it up. More importantly, it adds check and gate jobs that verify the same playbooks as used in the post job. Also correct source-repository for ironic-python-agent to use the project name, not the old element name. Change-Id: I9a404b24f95e47c84b22d4739fcf2b5b800886f9
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
- hosts: all
|
|
|
|
vars:
|
|
ipa_raw_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_RAW'
|
|
ipa_tar_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent/UPLOAD_TAR'
|
|
|
|
tasks:
|
|
|
|
- name: Ensure artifacts directory exists
|
|
file:
|
|
path: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/files'
|
|
state: directory
|
|
delegate_to: localhost
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/src/opendev.org/openstack/ironic-python-agent on node
|
|
synchronize:
|
|
src: '{{ ipa_raw_dir }}'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/files/'
|
|
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: '{{ ipa_tar_dir }}'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/{{ image_name }}/'
|
|
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
|