On May 26, 2022, at 11:05 PM, Christopher Bachmeyer <chris.b...@gmail.com> wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/wsdacUC7Gz4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/37c0545e-9775-42bb-a1d6-7e48668eb123n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3d3bee7-ebba-4f5a-a86f-92e6d4079384n%40googlegroups.com.
- name: "Create VM {{ vmware_provision_vm_hostname_long }} with IP {{ vmware_provision_vm_network_ip_addr }}"
community.vmware.vmware_guest:
datacenter: '{{ vmware_provision_datacenter }}'
cluster: '{{ vmware_provision_vm_cluster }}'
datastore: '{{ vmware_provision_vm_datastore }}'
name: '{{ vmware_provision_vm_hostname_long }}'
template: '{{ vmware_provision_vm_template }}'
folder: '{{ vmware_provision_vm_folder }}'
networks:
- name: '{{ vmware_provision_vm_network_name }}'
ip: '{{ vmware_provision_vm_network_ip_addr }}'
netmask: '{{ vmware_provision_vm_network_ip_netmask_addr }}'
gateway: '{{ vmware_provision_vm_network_ip_gateway_addr }}'
type: "static"
start_connected: true
wait_for_ip_address: true
delegate_to: localhost
joindomain: sncorp.com
# wait_for_customization: yes
delegate_to: localhost
I just noticed I am not using the "guest_id" param but according to the docs, I do not need this as I am deploying from a template.Thanks for taking a look, much appreciated!
On Friday, May 27, 2022 at 2:45:21 AM UTC-6 owen...@gmail.com wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/83802d17-e792-4308-8ddf-ed8eece46d58n%40googlegroups.com.
"ipv4": null,
"ipv6": "fe80::7990:4f2e:dfba:fcf5",
On Jun 7, 2022, at 3:33 PM, Christopher Bachmeyer <chris.b...@gmail.com> wrote:
Still no dice. I made the changes but I seem to be getting hung-up on an ipv6 address assignment which makes no sense.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8568f738-c967-4030-99d0-ae0e0280939an%40googlegroups.com.
While I still do not understand the root cause of the underlying issue with automated windows builds on vmware, I was able to overcome the issue.
I removed the network adapter from the vmware template and recreated a new template to use. I’ve tested the builds mainly using dhcp but statically
assigned IP addresses should work without issue.
Alternatively, it may be possible to write a few tasks in Ansible to create a windows vm while leaving it off, remove the adapter, and then add
a new adapter. This may work in addition to creating a new template without the adapter. I have yet to test this though.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/40433129-4ddf-4c24-9bf9-202d442d8c1fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHLuxN0oofyvyJC7eWkOLiywCND%3D4g%2BAc2b18qyjdrzVXhUjYg%40mail.gmail.com.