diff --git a/proxmoxve-ansible-python/__main__.py b/proxmoxve-ansible-python/__main__.py index 79b41ba..13dc43e 100644 --- a/proxmoxve-ansible-python/__main__.py +++ b/proxmoxve-ansible-python/__main__.py @@ -84,7 +84,7 @@ vm = proxmox.vm.VirtualMachine("vm", # Creating the inventory file inventory = command.local.Command("a-inventory", create = vm.ipv4_addresses[1][0].apply( - lambda ipaddr: f"echo '{vm_name} ansible_host={lanip} ansible_user={vm_username}' >./inventory" + lambda ipaddr: f"echo '{vm_name} ansible_host={ipaddr} ansible_user={vm_username}' >./inventory" ), delete = "rm -f ./inventory", opts = pulumi.ResourceOptions(depends_on = [ vm ])