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
26 lines
658 B
YAML
26 lines
658 B
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: Create a target directory for raw images
|
|
file:
|
|
path: '{{ ipa_raw_dir }}'
|
|
state: directory
|
|
|
|
- name: Create a target directory for tarballs
|
|
file:
|
|
path: '{{ ipa_tar_dir }}'
|
|
state: directory
|
|
|
|
- import_role:
|
|
name: ipa-build-tinyipa-image
|
|
when: image_type == 'tinyipa'
|
|
|
|
- import_role:
|
|
name: ipa-build-dib-image
|
|
when: image_type == 'dib'
|