You made my day!! Thank you so much. 

Thank you.
-- Sent from my iPhone 

> On Jan 21, 2022, at 4:24 PM, Oleg Galushko <[email protected]> wrote:
> 
> Unsupported parameters for (vmware_guest) module: customization.autologin, 
> customization.dns_Servers.
> 
> looks like you are using the wrong parameters, check docs 
> https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_module.html
>  and edit your playbook
> there is no autologin param in customization section, only autologon
> dns_Servers must be snake_cased like all other params, its case sensitive
> 
> вторник, 4 января 2022 г. в 07:23:31 UTC+3, [email protected]: 
>> Hi Everybody,
>> 
>> I am having this issue while I am running from my Mac where ansible doesn't 
>> recognize VMWARE_GUEST modules though they are installed. Any idea why its 
>> not able to recognize? I am using OS Monterey 12.1.
>> 
>> Can anyone help how to resolve it?
>> 
>> 
>> 
>> # /Users/inagdh/.ansible/collections/ansible_collections
>> Collection        Version
>> ----------------- -------
>> ansible.windows   1.7.2  
>> community.vmware  1.17.0 
>> community.windows 1.6.0  
>> ibm.power_ibmi    1.4.0  
>> 
>> ----------------------------------------------------------------------------------------------
>> 
>> inagdh@ip-10-279-6-23 Windows % ansible-playbook 
>> Multi_windows_provisioning.yml -vvv
>> ansible-playbook [core 2.11.6] 
>>   config file = None
>>   configured module search path = ['/Users/inagdh/.ansible/plugins/modules', 
>> '/usr/share/ansible/plugins/modules']
>>   ansible python module location = 
>> /usr/local/lib/python3.9/site-packages/ansible
>>   ansible collection location = 
>> /Users/inagdh/.ansible/collections:/usr/share/ansible/collections
>>   executable location = /usr/local/bin/ansible-playbook
>>   python version = 3.9.9 (main, Nov 21 2021, 03:23:44) [Clang 13.0.0 
>> (clang-1300.0.29.3)]
>>   jinja version = 3.0.1
>>   libyaml = True
>> No config file found; using defaults
>> host_list declined parsing /etc/ansible/hosts as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by the 
>> current user
>> script declined parsing /etc/ansible/hosts as it did not pass its 
>> verify_file() method
>> auto declined parsing /etc/ansible/hosts as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by the 
>> current user
>> yaml declined parsing /etc/ansible/hosts as it did not pass its 
>> verify_file() method
>> Skipping due to inventory source not existing or not being readable by the 
>> current user
>> ini declined parsing /etc/ansible/hosts as it did not pass its verify_file() 
>> method
>> Skipping due to inventory source not existing or not being readable by the 
>> current user
>> toml declined parsing /etc/ansible/hosts as it did not pass its 
>> verify_file() method
>> [WARNING]: No inventory was parsed, only implicit localhost is available
>> [WARNING]: provided hosts list is empty, only localhost is available. Note 
>> that the implicit localhost does not match 'all'
>> redirecting (type: modules) ansible.builtin.win_shell to 
>> ansible.windows.win_shell
>> redirecting (type: modules) ansible.builtin.win_partition to 
>> community.windows.win_partition
>> redirecting (type: modules) ansible.builtin.win_format to 
>> community.windows.win_format
>> redirecting (type: modules) ansible.builtin.win_shell to 
>> ansible.windows.win_shell
>> redirecting (type: modules) ansible.builtin.win_file to 
>> ansible.windows.win_file
>> Skipping callback 'default', as we already have a stdout callback.
>> Skipping callback 'minimal', as we already have a stdout callback.
>> Skipping callback 'oneline', as we already have a stdout callback.
>> 
>> PLAYBOOK: Multi_windows_provisioning.yml 
>> ***********************************************************************************************************************************
>> 2 plays in Multi_windows_provisioning.yml
>> 
>> PLAY [localhost] 
>> ***********************************************************************************************************************************************************
>> META: ran handlers
>> 
>> TASK [loop_win_prov : Provision server] 
>> ************************************************************************************************************************************
>> task path: 
>> /Users/inagdh/Bit_Bucket/playbooks/Windows/roles/loop_win_prov/tasks/main.yml:2
>> redirecting (type: modules) ansible.builtin.vmware_guest to 
>> community.vmware.vmware_guest
>> redirecting (type: modules) ansible.builtin.vmware_guest_disk to 
>> community.vmware.vmware_guest_disk
>> included: 
>> /Users/inagdh/Bit_Bucket/playbooks/Windows/roles/loop_win_prov/tasks/win_pro.yml
>>  for localhost => (item={'key': 'windows_multi_build1', 'value': {'vm_name': 
>> 'DELETE_APP1', 'network_ip': '10.2.0.5', 'netmask': '255.255.0.0', 
>> 'gateway': '10.2.1.1', 'vm_memory_mb': 4096, 'vm_num_cpus': 2, 'disk_size': 
>> 60, 'vlan': '963-OPS'}})
>> redirecting (type: modules) ansible.builtin.vmware_guest to 
>> community.vmware.vmware_guest
>> redirecting (type: modules) ansible.builtin.vmware_guest_disk to 
>> community.vmware.vmware_guest_disk
>> included: 
>> /Users/inagdh/Bit_Bucket/playbooks/Windows/roles/loop_win_prov/tasks/win_pro.yml
>>  for localhost => (item={'key': 'windows_multi_build2', 'value': {'vm_name': 
>> 'DELETE_APP2', 'network_ip': '10.2.0.6', 'netmask': '255.255.0.0', 
>> 'gateway': '10.2.1.1', 'vm_memory_mb': 4096, 'vm_num_cpus': 2, 'disk_size': 
>> 20, 'vlan': '963-OPS'}})
>> 
>> TASK [loop_win_prov : Provision Windows server] 
>> ****************************************************************************************************************************
>> task path: 
>> /Users/inagdh/Bit_Bucket/playbooks/Windows/roles/loop_win_prov/tasks/win_pro.yml:4
>> <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: inagdh
>> <127.0.0.1> EXEC /bin/sh -c 'echo ~inagdh && sleep 0'
>> <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo 
>> /Users/inagdh/.ansible/tmp `"&& mkdir "` echo 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354
>>  `" && echo ansible-tmp-1641269082.098041-90224-220799153403354="` echo 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354
>>  `" ) && sleep 0'
>> redirecting (type: modules) ansible.builtin.vmware_guest to 
>> community.vmware.vmware_guest
>> Using module file 
>> /Users/inagdh/.ansible/collections/ansible_collections/community/vmware/plugins/modules/vmware_guest.py
>> <127.0.0.1> PUT 
>> /Users/inagdh/.ansible/tmp/ansible-local-90220ijms8zd8/tmp3eotfz5d TO 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354/AnsiballZ_vmware_guest.py
>> <127.0.0.1> EXEC /bin/sh -c 'chmod u+x 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354/
>>  
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354/AnsiballZ_vmware_guest.py
>>  && sleep 0'
>> <127.0.0.1> EXEC /bin/sh -c '/usr/local/opt/[email protected]/bin/python3.9 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354/AnsiballZ_vmware_guest.py
>>  && sleep 0'
>> <127.0.0.1> EXEC /bin/sh -c 'rm -f -r 
>> /Users/inagdh/.ansible/tmp/ansible-tmp-1641269082.098041-90224-220799153403354/
>>  > /dev/null 2>&1 && sleep 0'
>> fatal: [localhost]: FAILED! => {
>>     "changed": false,
>>     "invocation": {
>>         "module_args": {
>>             "advanced_settings": [],
>>             "annotation": null,
>>             "cdrom": [],
>>             "cluster": "DevTest",
>>             "convert": null,
>>             "customization": {
>>                 "autologin": true,
>>                 "autologon": null,
>>                 "autologoncount": null,
>>                 "dns_Servers": [
>>                     "10.6.0.1",
>>                     "10.6.0.2"
>>                 ],
>>                 "dns_servers": null,
>>                 "dns_suffix": null,
>>                 "domain": "local.com",
>>                 "domainadmin": null,
>>                 "domainadminpassword": null,
>>                 "existing_vm": null,
>>                 "fullname": null,
>>                 "hostname": null,
>>                 "hwclockUTC": null,
>>                 "joindomain": null,
>>                 "joinworkgroup": null,
>>                 "orgname": null,
>>                 "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>                 "productid": null,
>>                 "runonce": null,
>>                 "timezone": null
>>             },
>>             "customization_spec": null,
>>             "customvalues": [],
>>             "datacenter": "dev",
>>             "datastore": "DevTest",
>>             "delete_from_inventory": false,
>>             "disk": [],
>>             "esxi_hostname": null,
>>             "folder": "Ansibletowervm",
>>             "force": false,
>>             "guest_id": null,
>>             "hardware": {
>>                 "boot_firmware": null,
>>                 "cpu_limit": null,
>>                 "cpu_reservation": null,
>>                 "hotadd_cpu": null,
>>                 "hotadd_memory": null,
>>                 "hotremove_cpu": null,
>>                 "iommu": null,
>>                 "max_connections": null,
>>                 "mem_limit": null,
>>                 "mem_reservation": null,
>>                 "memory_mb": 4096,
>>                 "memory_reservation_lock": null,
>>                 "nested_virt": null,
>>                 "num_cpu_cores_per_socket": null,
>>                 "num_cpus": 2,
>>                 "scsi": null,
>>                 "secure_boot": null,
>>                 "version": null,
>>                 "virt_based_security": null
>>             },
>>             "hostname": "vx.local.com",
>>             "is_template": false,
>>             "linked_clone": false,
>>             "name": "DELETE_APP1",
>>             "name_match": "first",
>>             "networks": [
>>                 {
>>                     "dns_servers": [
>>                         "10.6.0.1",
>>                         "10.6.0.2"
>>                     ],
>>                     "domain": "local.com",
>>                     "gateway": "10.2.1.1",
>>                     "ip": "10.2.0.5",
>>                     "name": "963",
>>                     "netmask": "255.255.0.0",
>>                     "type": "static"
>>                 }
>>             ],
>>             "nvdimm": {
>>                 "label": null,
>>                 "size_mb": 1024,
>>                 "state": null
>>             },
>>             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>             "port": 443,
>>             "proxy_host": null,
>>             "proxy_port": null,
>>             "resource_pool": null,
>>             "snapshot_src": null,
>>             "state": "poweredon",
>>             "state_change_timeout": 0,
>>             "template": "_MSDN_2016",
>>             "use_instance_uuid": false,
>>             "username": "[email protected]",
>>             "uuid": null,
>>             "validate_certs": false,
>>             "vapp_properties": [],
>>             "wait_for_customization": true,
>>             "wait_for_customization_timeout": 3600,
>>             "wait_for_ip_address": true,
>>             "wait_for_ip_address_timeout": 300
>>         }
>>     },
>>     "msg": "Unsupported parameters for (vmware_guest) module: 
>> customization.autologin, customization.dns_Servers. Supported parameters 
>> include: annotation (notes), folder, proxy_port, nvdimm, advanced_settings, 
>> port, snapshot_src, disk, wait_for_ip_address, customization, 
>> use_instance_uuid, validate_certs, customvalues, wait_for_customization, 
>> convert, vapp_properties, state_change_timeout, uuid, cdrom, password (pass, 
>> pwd), delete_from_inventory, name_match, wait_for_ip_address_timeout, 
>> customization_spec, state, datastore, resource_pool, template 
>> (template_src), proxy_host, networks, name, wait_for_customization_timeout, 
>> is_template, hardware, hostname, linked_clone, username (admin, user), 
>> force, datacenter, cluster, esxi_hostname, guest_id."
>> }
>> 
>> PLAY RECAP 
>> *****************************************************************************************************************************************************************
>> localhost                  : ok=2    changed=0    unreachable=0    failed=1  
>>   skipped=0    rescued=0    ignored=0   
> 
> -- 
> 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/Xfo6u0N1bjg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/4b83c630-2bbf-4be3-8334-2cea2c06e1dfn%40googlegroups.com.

-- 
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/FA017175-C426-4D7E-B733-2F41F86C3568%40gmail.com.

Reply via email to