damex.incus.incus_project module – Ensure Incus project
Note
This module 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_project.
Synopsis
Create, configure, and delete Incus projects via the Incus REST API.
Global resource — not scoped to a project.
Parameters
Parameter |
Comments |
|---|---|
Client certificate content for remote authentication. Requires |
|
Client certificate path for remote authentication. Requires |
|
Client key content for remote authentication. Requires |
|
Client key path 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. |
|
Server certificate content for remote verification. Requires |
|
Server certificate path for remote verification. Requires |
|
Incus Unix socket path for local connections. Default: |
|
Desired state of the project. Choices:
|
|
Token for remote authentication. Requires |
|
Remote Incus server URL (e.g. https://host:8443). If specified, connects via HTTPS instead of Unix socket. |
|
Server TLS certificate validation. Choices:
|
|
Async operation completion wait. Set to Choices:
|
Examples
- name: Ensure project
damex.incus.incus_project:
name: myproject
description: My project
config:
features.images: true
features.networks: false
- name: Ensure project is absent
damex.incus.incus_project:
name: myproject
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Resource state change indicator. Returned: always |
|
Configuration keys that changed. Returned: always |
|
Before and after state for diff mode. Returned: changed |
|
State after the change. Returned: success |
|
State before the change. Returned: success |