damex.incus.incus_instances role – Ensure Incus instances.
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_instances.
Entry point main – Ensure Incus instances.
Synopsis
Ensure Incus instances.
Parameters
Parameter |
Comments |
|---|---|
Instances to ensure. |
|
Instance configuration keys. |
|
Use instance NIC names and MTU for default interfaces. Choices:
|
|
Auto-restart after crash. Choices:
|
|
Instance autostart on daemon startup. Choices:
|
|
Seconds to wait after the instance started. |
|
Instance startup priority (higher starts first). |
|
Action to take on host shutdown. |
|
Seconds to wait for instance to stop on host shutdown. |
|
Instance shutdown priority (higher stops first). |
|
Cloud-init network configuration. |
|
Bond interface configurations. |
|
IPv6 Router Advertisement acceptance. Choices:
|
|
Static addresses in CIDR notation. |
|
DHCPv4. Choices:
|
|
DHCPv6. Choices:
|
|
Default IPv4 gateway address. |
|
Default IPv6 gateway address. |
|
Member interfaces for the bond. |
|
Maximum transmission unit for the interface. |
|
Bond name. |
|
DNS server configuration. |
|
DNS server addresses. |
|
DNS search domains. |
|
Optional boot interface. Choices:
|
|
Bond parameters. |
|
MII monitoring interval in milliseconds. |
|
Bonding mode. |
|
Static routes for the bond. |
|
Route metric value. |
|
Route scope. |
|
Routing table ID for the route. |
|
Route destination in CIDR notation. |
|
Gateway address for the route. |
|
Rename the interface to this name. |
|
Bridge interface configurations. |
|
IPv6 Router Advertisement acceptance. Choices:
|
|
Static addresses in CIDR notation. |
|
DHCPv4. Choices:
|
|
DHCPv6. Choices:
|
|
Default IPv4 gateway address. |
|
Default IPv6 gateway address. |
|
Member interfaces for the bridge. |
|
Maximum transmission unit for the interface. |
|
Bridge name. |
|
DNS server configuration. |
|
DNS server addresses. |
|
DNS search domains. |
|
Optional boot interface. Choices:
|
|
Bridge parameters. |
|
Forwarding delay in seconds. |
|
Spanning Tree Protocol. Choices:
|
|
Static routes for the bridge. |
|
Route metric value. |
|
Route scope. |
|
Routing table ID for the route. |
|
Route destination in CIDR notation. |
|
Gateway address for the route. |
|
Rename the interface to this name. |
|
Ethernet interface configurations. |
|
IPv6 Router Advertisement acceptance. Choices:
|
|
Static addresses in CIDR notation. |
|
DHCPv4. Choices:
|
|
DHCPv6. Choices:
|
|
Default IPv4 gateway address. |
|
Default IPv6 gateway address. |
|
Match rules for the interface. |
|
Kernel driver name to match. |
|
MAC address to match. |
|
Interface name glob pattern to match. |
|
Maximum transmission unit for the interface. |
|
Interface name. |
|
DNS server configuration. |
|
DNS server addresses. |
|
DNS search domains. |
|
Optional boot interface. Choices:
|
|
Static routes for the interface. |
|
Route metric value. |
|
Route scope. |
|
Routing table ID for the route. |
|
Route destination in CIDR notation. |
|
Gateway address for the route. |
|
Rename the interface to this name. |
|
Network renderer to use. |
|
Network config format version. |
|
VLAN interface configurations. |
|
IPv6 Router Advertisement acceptance. Choices:
|
|
Static addresses in CIDR notation. |
|
DHCPv4. Choices:
|
|
DHCPv6. Choices:
|
|
Default IPv4 gateway address. |
|
Default IPv6 gateway address. |
|
VLAN ID. |
|
Parent interface for the VLAN. |
|
Maximum transmission unit for the interface. |
|
VLAN interface name. |
|
DNS server configuration. |
|
DNS server addresses. |
|
DNS search domains. |
|
Optional boot interface. Choices:
|
|
Static routes for the VLAN. |
|
Route metric value. |
|
Route scope. |
|
Routing table ID for the route. |
|
Route destination in CIDR notation. |
|
Gateway address for the route. |
|
Rename the interface to this name. |
|
Cloud-init user data configuration. |
|
Public SSH key allowance. Choices:
|
|
APT package manager configuration. |
|
Regex for matching add-apt-repository entries. |
|
APT configuration content. |
|
Debconf preseed selections. |
|
Selection set identifier. |
|
Debconf selection lines. |
|
APT suites to disable. |
|
FTP proxy URL for APT. |
|
HTTP proxy URL for APT. |
|
HTTPS proxy URL for APT. |
|
Existing sources.list preservation. Choices:
|
|
Primary mirror configuration. |
|
APT proxy URL. |
|
Security mirror configuration. |
|
Additional APT source definitions. |
|
Source file append mode. Choices:
|
|
Name of the source list file. |
|
Raw GPG key. |
|
GPG key ID to import. |
|
Alternate keyserver to pull key from. |
|
Source entry identifier and filename. |
|
Sources.list entry. |
|
Custom sources.list content. |
|
Commands to run early in the boot process. |
|
CA certificate configuration. |
|
Default CA certificate removal. Choices:
|
|
Trusted CA certificates. |
|
Password change settings. |
|
Password expiry on first login. Choices:
|
|
Users with password settings. |
|
User name. |
|
Password value. |
|
Password type. Choices:
|
|
Root login. Choices:
|
|
SSH options applied when root login is disabled. |
|
Disk partitioning configuration. |
|
Partition layout specification. |
|
Device path. |
|
Existing partition table overwrite. Choices:
|
|
Partition table type. Choices:
|
|
Message to display when cloud-init completes. |
|
Fully qualified domain name. |
|
Filesystem setup configuration. |
|
Custom command to create the filesystem. |
|
Device path. |
|
Extra options for mkfs. |
|
Filesystem type. |
|
Filesystem label. |
|
Existing filesystem overwrite. Choices:
|
|
Partition specification. |
|
Existing filesystem replacement. Choices:
|
|
Groups to create. |
|
Partition growing configuration. |
|
Devices to grow. |
|
Growroot disabled marker bypass. Choices:
|
|
Growpart mode. Choices:
|
|
System hostname. |
|
System locale. |
|
Locale configuration file path. |
|
/etc/hosts management. Choices:
|
|
/etc/resolv.conf management. Choices:
|
|
Default values for mount entries with fewer than six fields. |
|
Mount point definitions. |
|
NTP configuration. |
|
Allowed NTP network ranges. |
|
NTP client-specific configuration. |
|
Executable name for the NTP client. |
|
NTP client configuration file path. |
|
Packages needed for the NTP client. |
|
Service name for the NTP client. |
|
Jinja template for NTP client configuration. |
|
NTP. Choices:
|
|
NTP client to use. |
|
NTP peer nodes. |
|
NTP pools. |
|
NTP servers. |
|
Post-upgrade reboot. Choices:
|
|
First-boot package list update. Choices:
|
|
First-boot package upgrade. Choices:
|
|
Packages to install on first boot. |
|
Password for the default user. |
|
Phone home configuration. |
|
Data items to send. |
|
Number of attempts to phone home. |
|
URL to send phone home data to. |
|
Power state change after cloud-init completes. |
|
Command or boolean to gate the power state change. |
|
Delay before power state change. |
|
Power state action to take. Choices:
|
|
Seconds to wait for cloud-init to complete. |
|
FQDN preference over short hostname. Choices:
|
|
Resolver configuration. |
|
DNS domain name. |
|
DNS nameservers. |
|
Resolver options for /etc/resolv.conf. |
|
Number of resolver query attempts. |
|
EDNS0 extensions. Choices:
|
|
IPv6 address preference. Choices:
|
|
Minimum dots in a name before absolute query. |
|
Name checking disabling. Choices:
|
|
Automatic config reload disabling. Choices:
|
|
Top-level domain query disabling. Choices:
|
|
Nameserver rotation. Choices:
|
|
Sequential A and AAAA queries. Choices:
|
|
Socket reopen for sequential queries. Choices:
|
|
Resolver query timeout in seconds. |
|
Resolver AD flag trust. Choices:
|
|
TCP DNS queries. Choices:
|
|
DNS search domains. |
|
DNS sort list. |
|
Commands to run after cloud-init completes. |
|
Snap package manager configuration. |
|
Snap commands to run. |
|
SSH public keys to add to the default user. |
|
Default SSH host key deletion. Choices:
|
|
SSH key types to generate. |
|
SSH host key pairs. |
|
ECDSA host certificate. |
|
ECDSA private host key. |
|
ECDSA public host key. |
|
Ed25519 host certificate. |
|
Ed25519 private host key. |
|
Ed25519 public host key. |
|
RSA host certificate. |
|
RSA private host key. |
|
RSA public host key. |
|
SSH host key publishing configuration. |
|
Key types to exclude from publishing. |
|
Host key publishing. Choices:
|
|
SSH password authentication. Choices:
|
|
SSH key generation output suppression. Choices:
|
|
Swap configuration. |
|
Swap file path. |
|
Maximum size of the swap file in bytes. |
|
Size of the swap file. |
|
System timezone. |
|
Default user name to create. |
|
Users to create. |
|
User group creation. Choices:
|
|
Doas rules for the user. |
|
Account expiration date. |
|
GECOS field for the user. |
|
Groups to add the user to. |
|
Pre-hashed password for the user. |
|
Home directory for the user. |
|
Days after password expires until account is disabled. |
|
User password lock. Choices:
|
|
User login name. |
|
Home directory creation skip. Choices:
|
|
User initialization log skip. Choices:
|
|
User group creation skip. Choices:
|
|
Hashed password for the user. |
|
Plain text password for the user. |
|
Primary group for the user. |
|
SELinux user for login mapping. |
|
Login shell for the user. |
|
Email for Snappy user creation. |
|
SSH public keys for the user. |
|
SSH IDs to import public keys from. |
|
SSH login redirection to default user. Choices:
|
|
Sudo rule for the user. |
|
System user. Choices:
|
|
Numeric user ID. |
|
Files to create on first boot. |
|
File append mode. Choices:
|
|
Content to write to the file. |
|
Deferred writing until after other modules. Choices:
|
|
Encoding of the content. Choices:
|
|
Owner and group of the file. |
|
Absolute path of the file to create. |
|
File permissions in octal notation. |
|
URL source for file content. |
|
HTTP headers for the request. |
|
Header name. |
|
Header value. |
|
URL to fetch content from. |
|
Cloud-init vendor data configuration. |
|
Public SSH key allowance. Choices:
|
|
APT package manager configuration. |
|
Regex for matching add-apt-repository entries. |
|
APT configuration content. |
|
Debconf preseed selections. |
|
Selection set identifier. |
|
Debconf selection lines. |
|
APT suites to disable. |
|
FTP proxy URL for APT. |
|
HTTP proxy URL for APT. |
|
HTTPS proxy URL for APT. |
|
Existing sources.list preservation. Choices:
|
|
Primary mirror configuration. |
|
APT proxy URL. |
|
Security mirror configuration. |
|
Additional APT source definitions. |
|
Source file append mode. Choices:
|
|
Name of the source list file. |
|
Raw GPG key. |
|
GPG key ID to import. |
|
Alternate keyserver to pull key from. |
|
Source entry identifier and filename. |
|
Sources.list entry. |
|
Custom sources.list content. |
|
Commands to run early in the boot process. |
|
CA certificate configuration. |
|
Default CA certificate removal. Choices:
|
|
Trusted CA certificates. |
|
Password change settings. |
|
Password expiry on first login. Choices:
|
|
Users with password settings. |
|
User name. |
|
Password value. |
|
Password type. Choices:
|
|
Root login. Choices:
|
|
SSH options applied when root login is disabled. |
|
Disk partitioning configuration. |
|
Partition layout specification. |
|
Device path. |
|
Existing partition table overwrite. Choices:
|
|
Partition table type. Choices:
|
|
Message to display when cloud-init completes. |
|
Fully qualified domain name. |
|
Filesystem setup configuration. |
|
Custom command to create the filesystem. |
|
Device path. |
|
Extra options for mkfs. |
|
Filesystem type. |
|
Filesystem label. |
|
Existing filesystem overwrite. Choices:
|
|
Partition specification. |
|
Existing filesystem replacement. Choices:
|
|
Groups to create. |
|
Partition growing configuration. |
|
Devices to grow. |
|
Growroot disabled marker bypass. Choices:
|
|
Growpart mode. Choices:
|
|
System hostname. |
|
System locale. |
|
Locale configuration file path. |
|
/etc/hosts management. Choices:
|
|
/etc/resolv.conf management. Choices:
|
|
Default values for mount entries with fewer than six fields. |
|
Mount point definitions. |
|
NTP configuration. |
|
Allowed NTP network ranges. |
|
NTP client-specific configuration. |
|
Executable name for the NTP client. |
|
NTP client configuration file path. |
|
Packages needed for the NTP client. |
|
Service name for the NTP client. |
|
Jinja template for NTP client configuration. |
|
NTP. Choices:
|
|
NTP client to use. |
|
NTP peer nodes. |
|
NTP pools. |
|
NTP servers. |
|
Post-upgrade reboot. Choices:
|
|
First-boot package list update. Choices:
|
|
First-boot package upgrade. Choices:
|
|
Packages to install on first boot. |
|
Password for the default user. |
|
Phone home configuration. |
|
Data items to send. |
|
Number of attempts to phone home. |
|
URL to send phone home data to. |
|
Power state change after cloud-init completes. |
|
Command or boolean to gate the power state change. |
|
Delay before power state change. |
|
Power state action to take. Choices:
|
|
Seconds to wait for cloud-init to complete. |
|
FQDN preference over short hostname. Choices:
|
|
Resolver configuration. |
|
DNS domain name. |
|
DNS nameservers. |
|
Resolver options for /etc/resolv.conf. |
|
Number of resolver query attempts. |
|
EDNS0 extensions. Choices:
|
|
IPv6 address preference. Choices:
|
|
Minimum dots in a name before absolute query. |
|
Name checking disabling. Choices:
|
|
Automatic config reload disabling. Choices:
|
|
Top-level domain query disabling. Choices:
|
|
Nameserver rotation. Choices:
|
|
Sequential A and AAAA queries. Choices:
|
|
Socket reopen for sequential queries. Choices:
|
|
Resolver query timeout in seconds. |
|
Resolver AD flag trust. Choices:
|
|
TCP DNS queries. Choices:
|
|
DNS search domains. |
|
DNS sort list. |
|
Commands to run after cloud-init completes. |
|
Snap package manager configuration. |
|
Snap commands to run. |
|
SSH public keys to add to the default user. |
|
Default SSH host key deletion. Choices:
|
|
SSH key types to generate. |
|
SSH host key pairs. |
|
ECDSA host certificate. |
|
ECDSA private host key. |
|
ECDSA public host key. |
|
Ed25519 host certificate. |
|
Ed25519 private host key. |
|
Ed25519 public host key. |
|
RSA host certificate. |
|
RSA private host key. |
|
RSA public host key. |
|
SSH host key publishing configuration. |
|
Key types to exclude from publishing. |
|
Host key publishing. Choices:
|
|
SSH password authentication. Choices:
|
|
SSH key generation output suppression. Choices:
|
|
Swap configuration. |
|
Swap file path. |
|
Maximum size of the swap file in bytes. |
|
Size of the swap file. |
|
System timezone. |
|
Default user name to create. |
|
Users to create. |
|
User group creation. Choices:
|
|
Doas rules for the user. |
|
Account expiration date. |
|
GECOS field for the user. |
|
Groups to add the user to. |
|
Pre-hashed password for the user. |
|
Home directory for the user. |
|
Days after password expires until account is disabled. |
|
User password lock. Choices:
|
|
User login name. |
|
Home directory creation skip. Choices:
|
|
User initialization log skip. Choices:
|
|
User group creation skip. Choices:
|
|
Hashed password for the user. |
|
Plain text password for the user. |
|
Primary group for the user. |
|
SELinux user for login mapping. |
|
Login shell for the user. |
|
Email for Snappy user creation. |
|
SSH public keys for the user. |
|
SSH IDs to import public keys from. |
|
SSH login redirection to default user. Choices:
|
|
Sudo rule for the user. |
|
System user. Choices:
|
|
Numeric user ID. |
|
Files to create on first boot. |
|
File append mode. Choices:
|
|
Content to write to the file. |
|
Deferred writing until after other modules. Choices:
|
|
Encoding of the content. Choices:
|
|
Owner and group of the file. |
|
Absolute path of the file to create. |
|
File permissions in octal notation. |
|
URL source for file content. |
|
HTTP headers for the request. |
|
Header name. |
|
Header value. |
|
URL to fetch content from. |
|
Evacuation behavior during cluster evacuation. Choices:
|
|
Environment variables to set. |
|
Environment variable name. |
|
Environment variable value. |
|
Number or range of CPUs to expose. |
|
CPU time allowance as a percentage or fixed duration. |
|
NUMA nodes to restrict the instance to. |
|
CPU scheduling priority compared to other instances. |
|
I/O request priority when under load (0-10). |
|
Limit for 1GB huge pages. |
|
Limit for 1MB huge pages. |
|
Limit for 2MB huge pages. |
|
Limit for 64KB huge pages. |
|
Percentage of host memory or fixed value in bytes. |
|
Memory limit enforcement mode. |
|
Memory hotplug. |
|
Huge page memory backing. Choices:
|
|
OOM killer priority for the instance. |
|
Swap encouragement or discouragement. |
|
Swap priority compared to other instances. |
|
Network I/O priority compared to other instances. |
|
Maximum number of processes in the instance. |
|
Comma-separated kernel modules to load. |
|
Incremental memory transfer. Choices:
|
|
Target percentage of dirty memory for completion. |
|
Maximum number of memory transfer iterations. |
|
Allow stateful stop/start and snapshots. Choices:
|
|
NVIDIA driver capabilities to expose. |
|
Required CUDA version. |
|
Required NVIDIA driver version. |
|
Pass NVIDIA runtime libraries into the container. Choices:
|
|
Working directory for the OCI container. |
|
Entrypoint for the OCI container. |
|
GID to run the OCI container as. |
|
UID to run the OCI container as. |
|
Raw AppArmor profile entries. |
|
Raw ID map configuration. |
|
Raw LXC configuration to append. |
|
Raw QEMU command-line arguments. |
|
Raw QEMU configuration overrides. |
|
Raw QMP commands before instance start. |
|
Raw QMP commands after instance start. |
|
Raw QMP commands just before instance start. |
|
Raw QEMU scriptlet. |
|
Raw Seccomp configuration. |
|
Incus-agent metrics exposure. Choices:
|
|
Delegated BPF attach types. |
|
Delegated BPF commands. |
|
Delegated BPF map types. |
|
Delegated BPF program types. |
|
BPFFS mount path in the instance. |
|
Compatibility Support Module. Choices:
|
|
Guest API. Choices:
|
|
Guest API image access. Choices:
|
|
Base host UID/GID for the ID map. |
|
Unique ID map isolation. Choices:
|
|
Size of the ID map range. |
|
IOMMU. Choices:
|
|
Allow running Incus inside the instance. Choices:
|
|
Privileged mode. Choices:
|
|
Deletion protection. Choices:
|
|
UID/GID shift protection. Choices:
|
|
UEFI Secure Boot. Choices:
|
|
AMD SEV encryption. Choices:
|
|
SEV-ES. Choices:
|
|
SEV session data blob. |
|
SEV Diffie-Hellman key. |
|
Allowed syscalls whitelist. |
|
Denied syscalls blacklist. |
|
Compat syscall blocking on amd64. Choices:
|
|
Default syscall deny list. Choices:
|
|
BPF syscall interception. Choices:
|
|
Device-type BPF program allowance. Choices:
|
|
Mknod syscall interception. Choices:
|
|
Mount syscall interception. Choices:
|
|
Filesystems allowed for intercepted mounts. |
|
FUSE mounts to redirect intercepted mounts to. |
|
ID-mapped mount shifting for intercepted mounts. Choices:
|
|
Sched_setscheduler syscall interception. Choices:
|
|
Setxattr syscall interception. Choices:
|
|
Sysinfo syscall interception. Choices:
|
|
Automatic expiry time for snapshots. |
|
Expiry time for manually created snapshots. |
|
Pongo2 template for snapshot names. |
|
Cron expression for automatic snapshots. |
|
Stopped instance snapshots. Choices:
|
|
Devices to attach to the instance. |
|
Enable hardware offloading (none/sriov/vdpa). |
|
PCI address of the device. |
|
Attached or ejected state. Choices:
|
|
Which side to bind on, host or instance. |
|
Boot priority for VMs. |
|
Bus number the USB device is connected to. |
|
Ceph cluster name. |
|
Ceph user name. |
|
Address and port to connect to. |
|
Host network connection state. Choices:
|
|
Instance dependent disk. Choices:
|
|
Device number of the USB device. |
|
Device option ROM exposure. Choices:
|
|
GID of the device owner in the instance. |
|
GPU type. Choices:
|
|
Register VLAN using GARP VLAN Registration Protocol. Choices:
|
|
Name of the interface on the host. |
|
MAC address of the new interface. |
|
DRM card ID of the GPU device. |
|
Override bus for the device. |
|
Caching mode for the disk device. |
|
IPv4 address to assign via DHCP or static allocation. |
|
Select specific external IPv4 address. |
|
Default IPv4 gateway. |
|
IPv4 address on the host-side veth interface. |
|
Custom policy routing table ID for IPv4 (deprecated). |
|
Comma-separated routing table IDs for IPv4 routes. |
|
Parent network IP availability probe. Choices:
|
|
Comma-delimited IPv4 static routes to add on the host. |
|
Comma-delimited IPv4 routes to publish via BGP. |
|
IPv6 address to assign via DHCP or static allocation. |
|
Select specific external IPv6 address. |
|
Default IPv6 gateway. |
|
IPv6 address on the host-side veth interface. |
|
Custom policy routing table ID for IPv6 (deprecated). |
|
Comma-separated routing table IDs for IPv6 routes. |
|
Parent network IP availability probe. Choices:
|
|
Comma-delimited IPv6 static routes to add on the host. |
|
Comma-delimited IPv6 routes to publish via BGP. |
|
Outgoing traffic I/O limit in bit/s. |
|
Incoming traffic I/O limit in bit/s. |
|
I/O limit in byte/s or IOPS (disk), or combined traffic limit in bit/s (nic). |
|
Outgoing traffic priority for queuing. |
|
I/O limit in byte/s or IOPS for read operations. |
|
I/O limit in byte/s or IOPS for write operations. |
|
Address and port to bind and listen on. |
|
Device major number. |
|
Mediated device profile to use. |
|
Existing MIG compute instance ID. |
|
Existing MIG GPU instance ID. |
|
Existing MIG device UUID. |
|
Device minor number. |
|
NIC mode or device permission mode. |
|
Maximum transmission unit of the new interface. |
|
Name of the device. |
|
NAT-based proxying. Choices:
|
|
Parent NIC name to nest this OVN NIC under. |
|
Managed network to attach the NIC to. |
|
NIC type when not using a managed network. |
|
Parent host device name. |
|
Path inside the instance. |
|
Resource manager path inside the instance. |
|
PCI address of the parent host device. |
|
Storage pool for the disk device. |
|
Product ID of the parent host device. |
|
Controls how a bind-mount is shared between instance and host. |
|
HAProxy PROXY protocol for sender information. Choices:
|
|
Transmit queue length for the NIC. |
|
File system specific mount options. |
|
Read-only mount. Choices:
|
|
Recursive source mount. Choices:
|
|
Source existence requirement. Choices:
|
|
Comma-separated list of network ACLs to apply. |
|
Default action for egress traffic not matching any ACL rule. |
|
Unmatched egress traffic logging. Choices:
|
|
Default action for ingress traffic not matching any ACL rule. |
|
Unmatched ingress traffic logging. Choices:
|
|
GID to drop privilege to. |
|
IPv4 address spoofing prevention. Choices:
|
|
IPv6 address spoofing prevention. Choices:
|
|
MAC address spoofing prevention. Choices:
|
|
NIC port isolation. Choices:
|
|
Promiscuous mode for unknown traffic. Choices:
|
|
Trusted NIC configuration. Choices:
|
|
UID to drop privilege to. |
|
Serial number of the USB device. |
|
UID/GID shifting overlay. Choices:
|
|
Disk size limit. |
|
Size for the VM runtime state file system. |
|
Source of a file system, block device, or host device path. |
|
Device type. Choices:
|
|
UID of the device owner in the instance. |
|
Vendor ID of the parent host device. |
|
VLAN ID to attach to. |
|
Comma-separated VLAN IDs or ranges for tagged traffic. |
|
VRF name on the host for the host-side interface and routes. |
|
World Wide Name assignment. Choices:
|
|
Ephemeral instance. Choices:
|
|
Name of the instance. |
|
Profiles to apply. |
|
Incus project to scope the instance to. |
|
Image source for the instance. |
|
Desired state of the instance. Choices:
|
|
Cluster member to place the instance on. |
|
Instance type. 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. |
|
Ephemeral instances. Choices:
|
|
Profiles to apply. |
|
Incus project to scope instances to. |
|
Server certificate content for API verification. |
|
TLS server certificate path for API verification. |
|
Incus Unix socket path. |
|
Desired state of the instances. Choices:
|
|
Authentication token for the Incus API. |
|
Instance type. Choices:
|
|
URL of the Incus server API. |
|
TLS certificate validation. Choices:
|
Examples
- name: Ensure incus instances
hosts: incus
tasks:
- name: Ensure incus instances
ansible.builtin.import_role:
name: damex.incus.incus_instances
vars:
incus_instances:
- name: web-01
source: images:debian/13
profiles:
- default
config:
limits.cpu: "2"
limits.memory: 2GB
- name: db-01
source: images:ubuntu/24.04
type: virtual-machine
config:
limits.cpu: "4"
limits.memory: 4GB
devices:
data:
type: disk
source: data
path: /var/lib/postgresql
- name: Ensure incus instances with cloud-init
hosts: incus
tasks:
- name: Ensure incus instances with cloud-init
ansible.builtin.import_role:
name: damex.incus.incus_instances
vars:
incus_instances:
- name: app-01
source: images:debian/13
config:
cloud-init.user-data:
users:
- name: deploy
groups: sudo
shell: /bin/bash
ssh_authorized_keys:
- ssh-ed25519 AAAA... [email protected]
packages:
- nginx
- postgresql-client