VCenter appliance root password expiration set module name & playbook issue
Hi Team,
Please share me module name for “VCenter appliance root password expiration set”.
Getting “ERROR! couldn’t resolve module/action ‘vmware.vmware_rest’. This often indicates a misspelling, missing collection, or incorrect module path.”
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.
yes chris…it is installed . The below are the output.
root@ubuntu-virtual-machine:~# ansible-galaxy collection list | grep -e ^vmware.vmware_rest
vmware.vmware_rest 2.2.0
root@ubuntu-virtual-machine:~#
Answer your first question : Yes , Im new to Ansible …I’m just started learning.
Answer to your second question : I’m going to achieve here is, I will set VCenter appliance root password expiration to 9999 days.
by default 90 days …Could you please review my play book ?
I’ve change to “community.vmware.vcenter_root_password_expiration” but still getting the same error.
ERROR! couldn’t resolve module/action ‘community.vmware.vcenter_root_password_expiration’. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in ‘/home/kkrishnasamy/VCenter_deploy_playbook/playbooks/04-VC-RootPWD-expiration-Set.yml’: line 8, column 8, but may be elsewhere in the file depending on the exact syntax problem.
Thanks ! Though you haven’t used a code block, so I can’t tell if you used correct indentation, as I suspect your issue lies there. Could you edit your post to paste your playbook content into one of those ?
I think there might be a misunderstanding, sorry. I am asking you to use a code block to better format your code, because right now, I can’t tell if it is correctly indented (and I think this might be where your error comes from). So, would you ?
If that’s an issue for whatever reason, you can also share it from a gist or any other similar service.
Also I don’t understand why there was a tasks block the first time you shared it, but it is gone now.