Ajout d'un id de bridge proxmox par vlan

This commit is contained in:
Navas 2023-02-28 11:56:44 +01:00
parent 79eaea94a9
commit 2689088ed9
2 changed files with 3 additions and 2 deletions

View file

@ -56,8 +56,9 @@ pvmt_vm_lvm_volumes:
# vlan vars
nom_du_vlan:
netmask: 24
vlanid: 1
bridge: id_du_bridge
netmask: 24
gateway: 10.0.0.254
nameservers: "10.0.0.1"
searchdomain: domaine.local

View file

@ -47,7 +47,7 @@
name : "{{ pvmt_vm_name }}"
interface: net0
state: present
bridge: vmbr0
bridge: "{{ vars[pvmt_vm_network].bridge }}"
firewall: yes
model: virtio
tag: "{{ vars[pvmt_vm_network].vlanid }}"