Add nms default

This commit is contained in:
Sandwich 2025-01-17 00:50:26 +01:00
parent bb82ff120b
commit 53a2c27984
2 changed files with 2 additions and 2 deletions
roles
cleanup/tasks
virtualization/tasks

@ -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"

@ -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