damex.incus.incus_network_zone_record module – Ensure Incus network zone record
Note
This module is part of the damex.incus collection (version 1.9.0).
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_network_zone_record.
Synopsis
Create, update, and delete Incus network zone records via the Incus REST API.
Network zone records define DNS entries within a network zone.
Records are identified by name within a given zone.
Parameters
Parameter |
Comments |
|---|---|
Client certificate content for remote authentication. Requires |
|
Path to the client certificate for remote authentication. Requires |
|
Client key content for remote authentication. Requires |
|
Path to the client key for remote authentication. Requires |
|
Network zone record configuration key-value pairs. Only user-defined keys (user.*) are supported. Default: |
|
Description of the network zone record. Default: |
|
List of DNS entries for the record. Entries are sorted by type and value for stable idempotency. |
|
Time to live in seconds. |
|
DNS record type (A, AAAA, CNAME, etc.). |
|
DNS record value. |
|
Name of the network zone record. |
|
Incus project to query. Default: |
|
Server certificate content for remote verification. Requires |
|
Path to the server certificate for remote verification. Requires |
|
Path to the Incus Unix socket for local connections. Default: |
|
Desired state of the network zone record. 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:
|
|
Name of the network zone containing the record. |
Examples
- name: Ensure network zone record with A entry
damex.incus.incus_network_zone_record:
zone: example.com
name: web
entries:
- type: A
value: 10.0.0.5
- name: Ensure network zone record with multiple entries
damex.incus.incus_network_zone_record:
zone: example.com
name: mail
description: Mail server records
entries:
- type: A
value: 10.0.0.10
- type: AAAA
value: fd42::10
ttl: 300
- name: Ensure network zone record is absent
damex.incus.incus_network_zone_record:
zone: example.com
name: web
state: absent