VCenter appliance root password expiration set module name & playbook issue

Hi,

vmware.vmware_rest is a collection, not a module. Also, you’re missing tasks keyword in your play.

Edit: I don’t know how familiar you are with Ansible, but for clarification, a task refers to a module, which would be part of a collection.
Here vmware.vmware_rest is the collection namespace, and contains different modules (as well as plugins and perhaps roles), such as vmware.vmware_rest.vcenter_vm, which you could use in a task to create a VM, for example.

Edit 2: I think community.vmware.vcenter_root_password_expiration module would be a good fit for your needs, assuming I understand correctly what you’re trying to achieve.

4 Likes