diff --git a/roles/cleanup/tasks/main.yml b/roles/cleanup/tasks/main.yml index 5e1cbfa..85382c7 100644 --- a/roles/cleanup/tasks/main.yml +++ b/roles/cleanup/tasks/main.yml @@ -29,7 +29,7 @@ api_password: "{{ hypervisor_password }}" node: "{{ hypervisor_node }}" vmid: "{{ vm_id }}" - state: started + state: restarted - name: Clean vCenter VM when: hypervisor == "vmware" diff --git a/roles/virtualization/tasks/proxmox.yml b/roles/virtualization/tasks/proxmox.yml index a086681..089a110 100644 --- a/roles/virtualization/tasks/proxmox.yml +++ b/roles/virtualization/tasks/proxmox.yml @@ -34,7 +34,7 @@ net: net0: virtio,bridge={{ vm_nif }}{% if vlan_name is defined and vlan_name %},tag={{ vlan_name }}{% endif %} ipconfig: - ipconfig0: ip={{ vm_ip }},gw={{ vm_gw }} + ipconfig0: ip={{ vm_ip }}/{{ vm_nms | default(24) }},gw={{ vm_gw }} nameservers: "{{ vm_dns }}" onboot: true state: present