community.proxmox.proxmox_zone module – Manage Proxmox zone configurations.
Note
This module is part of the community.proxmox collection (version 1.4.0).
You might already have this collection installed if you are using the ansible package.
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 community.proxmox.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.proxmox.proxmox_zone.
New in community.proxmox 1.4.0
Synopsis
Create/Update/Delete proxmox sdn zones.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >= 2.0
requests
Parameters
Parameter |
Comments |
|---|---|
Advertise EVPN subnets if you have silent hosts. Choices:
|
|
Specify the target host of the Proxmox VE cluster. Uses the |
|
Specify the password to authenticate with. Uses the |
|
Specify the target port of the Proxmox VE cluster. Uses the |
|
Specify the token ID. Uses the |
|
Specify the token secret. Uses the |
|
Specify the user to authenticate with. Uses the |
|
Specify the bridge interface to use. |
|
Disable auto MAC address learning on the bridge interface. Choices:
|
|
FRR router name. |
|
Type of the DHCP backend for this zone. Choices:
|
|
Disable IPv4 ARP and IPv6 neighbour discovery suppression. Choices:
|
|
DNS API server. |
|
DNS domain zone. |
|
Faucet dataplane ID. |
|
List of cluster node names. |
|
Allow exitnodes to connect to EVPN guests. Choices:
|
|
Force traffic to this exit node first. |
|
SDN fabric to use as underlay for this VXLAN zone. |
|
Use a specific IPAM. |
|
Anycast logical router MAC address. |
|
Set the Maximum Transmission Unit (MTU). |
|
List of cluster node names. |
|
Peers address list. |
|
Reverse DNS API server. |
|
Route-Target import. |
|
The desired state of the zone configuration. Choices:
|
|
Service-VLAN tag. |
|
Specify the type of zone. Choices:
|
|
If This should only be used on personally controlled sites using self-signed certificates. Uses the Choices:
|
|
Specify the VLAN protocol to use. Choices:
|
|
Specify the VRF VXLAN identifier. |
|
VXLAN tunnel UDP port (default 4789). |
|
Unique zone name. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Action group: community.proxmox.proxmox |
Use |
|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Create a simple zone
community.proxmox.proxmox_zone:
api_user: "root@pam"
api_password: "{{ vault.proxmox.root_password }}"
api_host: "{{ pc.proxmox.api_host }}"
validate_certs: false
type: simple
zone: ansible
state: present
- name: Create a vlan zone
community.proxmox.proxmox_zone:
api_user: "root@pam"
api_password: "{{ vault.proxmox.root_password }}"
api_host: "{{ pc.proxmox.api_host }}"
validate_certs: false
type: vlan
zone: ansible
state: present
bridge: vmbr0
- name: Delete a zone
community.proxmox.proxmox_zone:
api_user: "root@pam"
api_password: "{{ vault.proxmox.root_password }}"
api_host: "{{ pc.proxmox.api_host }}"
validate_certs: false
type: simple
zone: ansible
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Name of the zone which was created/updated/deleted Returned: on success Sample: |