damex.incus.incus_image_imports role – Ensure Incus image imports.
Note
This role is part of the damex.incus collection (version 1.11.7).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install damex.incus.
To use it in a playbook, specify: damex.incus.incus_image_imports.
Entry point main – Ensure Incus image imports.
Synopsis
Ensure Incus image imports.
Parameters
Parameter |
Comments |
|---|---|
Image imports to ensure. |
|
Primary image alias. |
|
Additional image aliases. |
|
Image architecture identifier. |
|
Expected source file checksum. |
|
Hash algorithm used for checksum verification. Choices:
|
|
Force re-import when alias exists. Choices:
|
|
Incus project scope. |
|
Image metadata properties. |
|
Human-readable image description. |
|
Image name. |
|
Operating system name. |
|
Operating system release or version. |
|
Image serial or build identifier. |
|
Image variant. |
|
Unauthenticated user image access. Choices:
|
|
Local image file path or download URL. |
|
Image desired state. Choices:
|
|
Source file download timeout in seconds. |
|
Image architecture identifier. |
|
Hash algorithm used for checksum verification. Choices:
|
|
Client certificate content for API authentication. |
|
TLS client certificate path for API authentication. |
|
Client key content for API authentication. |
|
TLS client key path for API authentication. |
|
Force re-import when alias exists. Choices:
|
|
Incus project scope. |
|
Unauthenticated user image access. Choices:
|
|
Server certificate content for API verification. |
|
TLS server certificate path for API verification. |
|
Incus Unix socket path. |
|
Images desired state. Choices:
|
|
Source file download timeout in seconds. |
|
Incus API authentication token. |
|
Incus server API URL. |
|
TLS certificate validation. Choices:
|
Examples
- name: Ensure incus image imports
hosts: incus
tasks:
- name: Ensure incus image imports
ansible.builtin.import_role:
name: damex.incus.incus_image_imports
vars:
incus_image_imports:
- alias: chr/7.22
source: https://download.mikrotik.com/routeros/7.22/chr-7.22.img.zip
properties:
os: RouterOS
release: "7.22"
description: MikroTik CHR 7.22
- alias: custom/1.0
source: /tmp/custom-image.qcow2
properties:
os: CustomOS
release: "1.0"
description: Custom OS Image