Open
Description
Issue Type: Bug Report
Component Name: community.vmware.vmware_guest
Ansible Version: ansible [core 2.15.12]
VMware Collection Version: 5.4.0
Summary:
When creating a VM using the vmware_guest module with a static IP configuration, the VM is successfully created and powered on, but the specified IP is not assigned to the VM.
- name: Create a Linux VM from Template
hosts: localhost
gather_facts: false
collections:- community.vmware
tasks: - name: start creating the VM
vmware_guest:
hostname: "{{ vcenterhost }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: no
datacenter: "{{ datacenter }}"
folder: "{{ folder }}"
template: "{{ template }}"
name: "{{ machine_name }}"
cluster: "{{ cluster }}"
datastore: "{{ datastore }}"
annotation: "{{ notes }}"
hardware:
memory_mb: "{{ memory_mb }}"
num_cpus: " {{ num_cpus }}"
networks:- name: "{{ network }}"
type: static
ip: "{{ ip_address }}"
netmask: "{{ subnet }}"
gateway: "{{ gateway }}"
connected: true
start_connected: true
dns_servers:- "{{ primary_dns }}"
- "{{ secondary_dns }}"
customization:
hostname: "{{ machine_name }}"
dns_servers: - "{{ primary_dns }}"
- "{{ secondary_dns }}"
state: poweredon
delegate_to: localhost
register: vm_info
- name: "{{ network }}"
- community.vmware
Metadata
Metadata
Assignees
Labels
No labels