# vmware\_guest - Modify Multiple VM's

**URL:** <https://forum.ansible.com/t/vmware-guest-modify-multiple-vms/29255>\
**Category:** Ansible Project\
**Created:** [December 13, 2018, 9:40am UTC](https://forum.ansible.com/t/vmware-guest-modify-multiple-vms/29255 "2018-12-13T09:40:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaun\_Glass](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@Shaun\_Glass](https://forum.ansible.com/u/Shaun_Glass)\
**Post date:** [December 13, 2018, 9:40am UTC](https://forum.ansible.com/t/vmware-guest-modify-multiple-vms/29255/1 "2018-12-13T09:40:14Z")

</div>

Good Day,

How would one compose a list of VM’s to make changes against. I have the following which works for a single machine :

_- hosts: 127.0.0.1_  
_tasks:_  
_- name: Change NIC Configuration_  
_delegate\_to: localhost_  
_vmware\_guest:_  
_hostname: XXXXXXXXX_  
_username: XXXXXXXXX_  
_password: XXXXXXXXX_  
_datacenter: XXXXXXXXX_  
_ **name: VSAN025** _  
_validate\_certs: False_  
_state: present_  
_folder: /XXXXXXXXX_  
_networks:_  
_- name: Internal_

… however, I need to make changes to dozens of machines. I have tried _vars_ etc but it is like it cannot handle multiple servers against **_name_**?

_“msg”: "No folder /__XXXXXXXXX matched in the search path : / **XXXXXXXXX/vm/** XXXXXXXXX"_

Regards

Shaun
