Figured it out. In the playbook I had a redundant entry - vlan: "{{
vlan }}" Once I removed it all was good.
Thanks for listening.
Rene
From: [email protected] <[email protected]> On
Behalf Of Rene Paquin
Sent: March 25, 2021 11:19 AM
To: [email protected]
Subject: [ansible-project] RE: vmware template deployment issue
Forgot to mention that I am attempting to deploy a windows server.
Rene
From: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> On
Behalf Of Rene Paquin
Sent: March 25, 2021 11:09 AM
To: [email protected]<mailto:[email protected]>
Subject: [ansible-project] vmware template deployment issue
Currently on version 2.10.6 and installed the community vmware collection and
dependencies. I am running the playbook below and getting this error:
"msg": "TypeError was returned, please ensure to give correct inputs. Field
\"ip\" is not optional".
Not sure what I am missing here. Any help is appreciated,
Thanks,
- hosts: localhost
gather_facts: no
vars_files:
- group_vars/vars
- group_vars/vars_sec
tasks:
- name: Clone the template
community.vmware.vmware_guest:
hostname: "{{ vcenter_server }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
validate_certs: False
name: "{{ name }}"
template: "{{ template }}"
datacenter: "{{ datacenter_name }}"
folder: "{{ folder }}"
cluster: "{{ cluster_name }}"
datastore: "{{ datastore }}"
networks:
- name: "{{ network }}"
ip: "{{ ip }}"
netmask: 255.255.254.0
gateway: "{{ gw }}"
dns_servers:
- 10.10.82.255
- 10.100.46.20
- vlan: "{{ vlan }}"
type: static
state: poweredon
wait_for_ip_address: yes
delegate_to: localhost
register: deploy_vm
********************************
Rene Paquin - Systems Administrator
Wilfrid Laurier University
Waterloo, Ontario
(519)884-0710 x3795
[email protected]<mailto:[email protected]>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/YTXPR0101MB12958F4B26098D55A19B0B06D8629%40YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2FYTXPR0101MB12958F4B26098D55A19B0B06D8629%2540YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Crpaquin%40wlu.ca%7C89b4b842ab6f46a5af2508d8efa14b2e%7Cb45a5125b29846bc8b89ea5a7343fde8%7C1%7C0%7C637522823499544817%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=qMwhZMCXVnu%2F6aaS9nwcgew%2FWo8IlK%2FXWffd3IDJq0M%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/YTXPR0101MB1295E57A4E9878C4EFD695F3D8629%40YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2FYTXPR0101MB1295E57A4E9878C4EFD695F3D8629%2540YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Crpaquin%40wlu.ca%7C89b4b842ab6f46a5af2508d8efa14b2e%7Cb45a5125b29846bc8b89ea5a7343fde8%7C1%7C0%7C637522823499554812%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=y78JdF3tntc1NmCHububf2ffmuuwPszFLUb0rnILkxs%3D&reserved=0>.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/YTXPR0101MB12951E41F4B8373BFF18C155D8629%40YTXPR0101MB1295.CANPRD01.PROD.OUTLOOK.COM.