diff --git a/proxmoxve-ansible-python/__main__.py b/proxmoxve-ansible-python/__main__.py index b628539..96b3fc7 100644 --- a/proxmoxve-ansible-python/__main__.py +++ b/proxmoxve-ansible-python/__main__.py @@ -54,7 +54,7 @@ vm = proxmox.vm.VirtualMachine("vm", sockets = vm_sockets ), memory = proxmox.vm.VirtualMachineMemoryArgs( - dedicated = mv_ram + dedicated = vm_ram ), clone = proxmox.vm.VirtualMachineCloneArgs( node_name = pve_nodename, @@ -105,7 +105,8 @@ with open('inventory', 'w') as f: # Applying the command execute_ansible = command.local.Command("ansible", - create = f"ansible-playbook {ansible_playbook}" + create = f"ansible-playbook {ansible_playbook}", + opts = ResourceOptions(depends_on = [vm]) ) # Outputs