damex.incus.incus_network_address_sets role – Ensure Incus network address sets.
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_address_sets.
Entry point main – Ensure Incus network address sets.
Synopsis
Ensure Incus network address sets.
Parameters
Parameter |
Comments |
|---|---|
List of Incus network address sets to ensure. |
|
List of IPv4 or IPv6 addresses, with or without CIDR suffix. |
|
Network address set configuration key-value pairs. |
|
Description of the network address set. |
|
Name of the network address set. |
|
Incus project for the network address set. |
|
Desired state of the network address set. 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 address sets. |
|
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 address sets. Choices:
|
|
Authentication token for the Incus API. |
|
URL of the Incus server API. |
|
Whether to validate TLS certificates. Choices:
|
Examples
- name: Ensure incus network address sets
hosts: incus
tasks:
- name: Ensure incus network address sets
ansible.builtin.import_role:
name: damex.incus.incus_network_address_sets
vars:
incus_network_address_sets:
- name: web_servers
description: Web server addresses
addresses:
- 10.0.0.5
- 10.0.0.6
- name: dns_servers
addresses:
- 10.0.0.10
- 2001:db8::1