damex.incus.incus_cluster_group module – Ensure Incus cluster group
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_cluster_group.
Synopsis
Create, update, and delete Incus cluster groups via the Incus REST API.
Cluster groups allow launching instances on a cluster member that belongs to a subset of all available members.
The members list is managed as a full replacement — members not listed are removed.
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 |
|
The description of the cluster group. Default: |
|
List of members in this group. Managed as a full replacement — members not listed are removed from the group. |
|
Name of the cluster group. |
|
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 cluster group. 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 cluster group for ARM64 DPU nodes
damex.incus.incus_cluster_group:
name: dpu
description: ARM64 DPU nodes
members:
- arm64-node1
- arm64-node2
- name: Ensure empty cluster group
damex.incus.incus_cluster_group:
name: staging
- name: Ensure cluster group is absent
damex.incus.incus_cluster_group:
name: dpu
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 |