From 7277d000087cc58a1c40b5c0d4911e7cbcaa69de Mon Sep 17 00:00:00 2001 From: jerick Date: Tue, 3 Feb 2026 21:12:54 -0500 Subject: [PATCH] added hostname parameter for configuration --- roles/proxmox_lxc/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/proxmox_lxc/tasks/main.yml b/roles/proxmox_lxc/tasks/main.yml index e1551bf..f5ebe31 100644 --- a/roles/proxmox_lxc/tasks/main.yml +++ b/roles/proxmox_lxc/tasks/main.yml @@ -63,11 +63,13 @@ api_token_secret: "{{ proxmox_api_token_secret }}" node: "{{ target_node }}" vmid: "{{ cloned_lxc.vmid }}" + hostname: "{{ vm_hostname }}" cores: "{{ cpu_cores }}" memory: "{{ ram_gb | int * 1024 }}" netif: net0: "name=eth0,bridge=vmbr0,ip=dhcp" state: present + update: true - name: Start the LXC container community.proxmox.proxmox: