damex.incus.incus_images role – Ensure Incus images.
Note
This role is part of the damex.incus collection (version 1.6.1).
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_images.
Entry point main – Ensure Incus images.
Synopsis
Ensure Incus images.
Parameters
Parameter |
Comments |
|---|---|
List of images to ensure. |
|
Local alias to assign to the image. |
|
Whether to automatically update the image when a new build is available. Choices:
|
|
Whether to copy aliases from the source. Choices:
|
|
Incus project to scope the image to. |
|
Whether to make the image available to unauthenticated users. Choices:
|
|
Remote source identifier for the image. |
|
Protocol to use for the remote image server. Choices:
|
|
URL of the remote image server. |
|
Desired state of the image. Choices:
|
|
Instance type for the image. Choices:
|
|
Whether to automatically update images when a new build is available. Choices:
|
|
Path to the TLS client certificate. |
|
Path to the TLS client key. |
|
Whether to copy aliases from the source. Choices:
|
|
Incus project to scope images to. |
|
Whether to make images available to unauthenticated users. Choices:
|
|
Path to the TLS server certificate. |
|
Path to the Incus Unix socket. |
|
Protocol to use for the remote image server. Choices:
|
|
URL of the remote image server. |
|
Desired state of the images. Choices:
|
|
Authentication token for the Incus API. |
|
Instance type for the images. Choices:
|
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus images
hosts: incus
tasks:
- name: Ensure incus images
ansible.builtin.import_role:
name: damex.incus.incus_images
vars:
incus_images:
- source: images:debian/13
alias: debian13
- source: images:ubuntu/24.04
alias: ubuntu2404
type: virtual-machine
auto_update: true