# Trouble Updating VMware Custom Attributes with Ansible

**URL:** <https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [April 27, 2020, 2:39pm UTC](https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793 "2020-04-27T14:39:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OOS](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@OOS](https://forum.ansible.com/u/OOS)\
**Post date:** [April 27, 2020, 2:39pm UTC](https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793/1 "2020-04-27T14:39:52Z")

</div>

Hi,

I’m trying to update custom attributes for existing VMware VMs using Ansible. I spent quite a bit of time testing, but I can’t seem to get it working.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 27, 2020, 2:45pm UTC](https://forum.ansible.com/t/trouble-updating-vmware-custom-attributes-with-ansible/32793/2 "2020-04-27T14:45:27Z")

</div>

> Hi,
> 
> I'm trying to update custom attributes for existing VMware VMs using Ansible. I spent quite a bit of time testing, but  
> I can't seem to get it working.
> 
> /---/

Looks like your indentation is wrong, hence this error:

ERROR! 'delegate\_to' is not a valid attribute for a Play

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
