damex.incus.incus_project module – Ensure Incus project
Note
This module 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_project.
Synopsis
Create, configure, and delete Incus projects via the Incus REST API.
Global resource — not scoped to a project.
Parameters
Parameter |
Comments |
|---|---|
Path to the client certificate for remote authentication. Requires |
|
Path to the client key for remote authentication. Requires |
|
Project configuration. All values are sent as strings to the Incus API. Default: |
|
Compression algorithm for backups. Choices:
|
|
Enable separate image store for the project. Choices:
|
|
Enable separate network management for the project. Choices:
|
|
Enable separate network zone management for the project. Choices:
|
|
Enable separate profile store for the project. Choices:
|
|
Enable separate storage bucket management for the project. Choices:
|
|
Enable separate storage volume management for the project. Choices:
|
|
Whether to auto-update cached images. Choices:
|
|
Interval in hours between image auto-updates. |
|
Compression algorithm for images. Choices:
|
|
Default architecture for images. |
|
Number of days before cached remote images expire. |
|
Maximum number of containers in the project. |
|
Maximum number of CPUs allocated to the project. |
|
Maximum disk space used by the project. |
|
Maximum number of instances in the project. |
|
Maximum memory used by the project. |
|
Maximum number of networks in the project. |
|
Maximum number of processes in the project. |
|
Maximum number of virtual machines in the project. |
|
Pattern for automatically generated MAC addresses. |
|
Whether to block access to security-sensitive features. Choices:
|
|
Prevent instance or volume backups. Choices:
|
|
Comma-separated list of allowed cluster groups. |
|
Whether to allow targeting cluster members. Choices:
|
|
Whether to allow system call interception in containers. Choices:
|
|
Whether to allow low-level container options. Choices:
|
|
Whether to allow nesting in containers. Choices:
|
|
Control privileged container settings. Choices:
|
|
Control which disk devices can be used. Choices:
|
|
Comma-separated list of allowed disk source paths. |
|
Whether to allow GPU devices in the project. Choices:
|
|
Whether to allow InfiniBand devices in the project. Choices:
|
|
Control which network devices can be used. Choices:
|
|
Whether to allow PCI devices in the project. Choices:
|
|
Whether to allow proxy devices in the project. Choices:
|
|
Whether to allow Unix block devices in the project. Choices:
|
|
Whether to allow Unix character devices in the project. Choices:
|
|
Whether to allow Unix hotplug devices in the project. Choices:
|
|
Whether to allow USB devices in the project. Choices:
|
|
Allowed host GID ranges for raw.idmap. |
|
Allowed host UID ranges for raw.idmap. |
|
Comma-separated list of allowed networks for access. |
|
Comma-separated list of allowed network integrations. |
|
Comma-separated list of allowed network subnets. |
|
Comma-separated list of allowed network uplinks. |
|
Comma-separated list of allowed network zones. |
|
Prevent instance or volume snapshots. Choices:
|
|
Whether to allow low-level virtual machine options. Choices:
|
|
Description of the project. Default: |
|
Name of the project. |
|
Path to the server certificate for remote verification. Requires |
|
Path to the Incus Unix socket for local connections. Default: |
|
Desired state of the project. Choices:
|
|
Token for remote authentication. Requires |
|
URL of the remote Incus server (e.g. https://host:8443). If specified, connects via HTTPS instead of Unix socket. |
|
Whether to validate the server TLS certificate. Choices:
|
|
Whether to wait for async operations to complete before returning. Set to Choices:
|
Examples
- name: Create project
damex.incus.incus_project:
name: myproject
description: My project
config:
features.images: true
features.networks: false
- name: Remove project
damex.incus.incus_project:
name: myproject
state: absent