Files
ansible-collection-infrastr…/roles/proxmox_lxc_provision/defaults/main.yml
T
patrick 4f09e886c2 feat(proxmox_lxc_provision): support custom bridge, interface name, and VLAN tag
The bridge (vmbr0) and interface name (eth0) were previously hardcoded
in the netif string, and there was no way to set an 802.1Q VLAN tag.
Expose lxc_bridge, lxc_iface_name, and lxc_vlan_tag (optional) so
containers can be attached to non-default bridges or tagged into a VLAN
without forking the role.

Also drop the misleading 'lxc_ipv6 | default(omit)' filter — default(omit)
does not produce omission inside a string context, and lxc_ipv6 always
has a default of 'auto' in defaults/main.yml.
2026-06-27 21:23:14 -04:00

32 lines
860 B
YAML
Executable File

---
# Proxmox API connection defaults (optional)
proxmox_api_port: 8006
proxmox_api_validate_certs: false
# Host to delegate pct commands to (use inventory hostname for become_password to work)
proxmox_delegate_host: "{{ proxmox_api_host }}"
# LXC defaults
lxc_template: "local:vztmpl/debian-12-standard_12.12-1_amd64.tar.zst"
lxc_cores: 4
lxc_memory: 2048
lxc_swap: 2048
lxc_storage: local-zfs
lxc_size: 16
lxc_disk: "{{ lxc_storage }}:{{ lxc_size }}"
lxc_ipv4: dhcp
lxc_ipv6: auto
lxc_nameserver: 10.0.0.7
lxc_gateway: 10.0.0.1
lxc_bridge: vmbr0
lxc_iface_name: eth0
# lxc_vlan_tag: unset by default; set to an integer (1-4094) to add an 802.1Q tag
lxc_pubkey_file: "~/.ssh/id_ed25519.pub"
lxc_unprivileged: true
lxc_features:
- nesting=1
lxc_nvidia_gpu_mount: false
lxc_tags: ["ansible-managed"]
lxc_clone_type: full
lxc_start: true
lxc_user_name: admin