Simon Westphahl e749223328
Add ensure-dib role
Role installs the diskimage-builder in a virtualenv.

Change-Id: I0801daa6d5b8039bfbdefb7357942b1c5a58732f
2024-08-19 09:13:07 +02:00

29 lines
715 B
ReStructuredText

This role installs diskimage-builder and dependencies.
Currently, only Ubuntu and Debian distributions are supported.
.. note::
The disk-image-create script will be located in
`{{ dib_venv_dir }}/bin/disk-image-create`.
**Role variables**
.. zuul:rolevar:: ensure_dib_venv_dir
:default: "{{ ansible_user_dir }}/dib"
Directory for the virtualenv to install the diskimage-builder.
.. zuul:rolevar:: ensure_dib_version
:default: undefined
The version of diskimage-builder to install. The default is to install the
lastest version.
**Output Variables**
.. zuul:rolevar:: ensure_dib_command
This variable points to the disk-image-create command installed in the
{{ dib_venv_dir }}.