Role in order to build a diskimage in a Zuul job. Change-Id: I18756445d41d51b05b3dbb334e43a94637253321
18 lines
488 B
YAML
18 lines
488 B
YAML
- hosts: all
|
|
roles:
|
|
- ensure-dib
|
|
- role: build-diskimage
|
|
build_diskimage_image_name: foo-ubuntu-image
|
|
build_diskimage_formats: ["qcow2"]
|
|
build_diskimage_elements: ["vm", "ubuntu"]
|
|
environment:
|
|
DIB_RELEASE: "noble"
|
|
tasks:
|
|
- name: Gather image file info
|
|
stat:
|
|
path: "/home/zuul/dib-images/foo-ubuntu-image.qcow2"
|
|
register: image_file
|
|
- name: Assert image file exists
|
|
assert:
|
|
that: image_file.stat.exists
|