There is option 'rename' in vmware_host_datastore. If you want to rename an
object in VMware please use `vmware_object_rename` module. -
https://github.com/ansible-collections/community.vmware/blob/main/plugins/modules/vmware_object_rename.py

On Tue, Feb 23, 2021 at 2:13 PM Dick Visser <[email protected]> wrote:

> What exactly does "its not working" mean?
> Errors, etc?
>
> On Tue, 23 Feb 2021 at 08:00, Jon POK <[email protected]> wrote:
>
>> Hello
>>
>> I am trying to execute this task
>>
>> - name: Rename Datastores on ESXi host vmware_host_datastore:
>>  hostname: '{{ vcenter_hostname }}'
>>  username: '{{ vcenter_username }}'
>>  password: '{{ vcenter_password }}'
>>  datacenter_name: '{{ datacenter }}'
>>  datastore_name: datastore(1)
>>  rename: new_datastore_1
>>  esxi_hostname: '{{ inventory_hostname }}' state: present
>>
>> but is not working
>> Has anybody try this and knows how to fix it?
>>
>> Piotr
>>
>> --
>> 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/fe60adee-e575-44bc-8323-665d49949d50n%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/fe60adee-e575-44bc-8323-665d49949d50n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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/CAL8fbwMAqqkW3M6-hmziXkrgTa2Y1%2BvEYpLz3KAdB6zxUb-Vmw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwMAqqkW3M6-hmziXkrgTa2Y1%2BvEYpLz3KAdB6zxUb-Vmw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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/CAFwWkHp6eUMam%3D6J39ZeHtd-%2B8K7xNkafWjBpeioAuL2Sxug1A%40mail.gmail.com.

Reply via email to