damex.incus.incus_images role – Ensure Incus images.
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_images.
Entry point main – Ensure Incus images.
Synopsis
Ensure Incus images.
Parameters
Parameter |
Comments |
|---|---|
Images to ensure. |
|
Local image alias. |
|
Automatic image update on new build. Choices:
|
|
Source alias copying. Choices:
|
|
Incus project scope. |
|
Unauthenticated user image access. Choices:
|
|
Remote source identifier. |
|
Remote image server protocol. Choices:
|
|
Remote image server URL. |
|
Image desired state. Choices:
|
|
Image instance type. Choices:
|
|
Automatic image update on new build. 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. |
|
Source alias copying. 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. |
|
Remote image server protocol. Choices:
|
|
Remote image server URL. |
|
Images desired state. Choices:
|
|
Incus API authentication token. |
|
Image instance type. Choices:
|
|
Incus server API URL. |
|
TLS certificate validation. 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
- source: docker:library/nginx
alias: nginx