damex.incus.incus_network_zones role – Ensure Incus network zones.
Note
This role 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_zones.
Entry point main – Ensure Incus network zones.
Synopsis
Ensure Incus network zones.
Parameters
Parameter |
Comments |
|---|---|
List of Incus network zones to ensure. |
|
Zone configuration key-value pairs (user.* keys only). |
|
Description of the network zone. |
|
Name of the network zone. |
|
Incus project for the network zone. |
|
Desired state of the network zone. Choices:
|
|
Client certificate content for API authentication. |
|
Path to the TLS client certificate for API authentication. |
|
Client key content for API authentication. |
|
Path to the TLS client key for API authentication. |
|
Default Incus project for network zones. |
|
Server certificate content for API verification. |
|
Path to the TLS server certificate for API verification. |
|
Path to the Incus Unix socket. |
|
Default desired state of the network zones. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus network zones
hosts: incus
tasks:
- name: Ensure incus network zones
ansible.builtin.import_role:
name: damex.incus.incus_network_zones
vars:
incus_network_zones:
- name: example.com
description: Forward DNS zone
- name: internal.lan
config:
user.note: Internal zone