Add network mask variables for Hypervisor static IP assigments

This commit is contained in:
2024-10-30 14:33:38 +01:00
parent c8dd89681b
commit ca5a3c8807
3 changed files with 6 additions and 2 deletions

View File

@@ -35,7 +35,9 @@
iso_path: "{{ boot_iso }}"
networks:
- vlan: "{{ vlan_name }}"
type: dhcp
type: static
ip: "{{ inventory_hostname }}"
netmask: "{{ vm_mask | default('255.255.255.0') }}"
register: vmware_guest_result
failed_when:
- vmware_guest_result.failed is defined and vmware_guest_result.failed