Closed DasFaultier closed 7 months ago
A faced with such problem. This message comes from vCenter API. Try object_type: 'ComputeResource'
(if you don't use HA cluster) or 'ClusterComputeResource'
otherwise
Any movement on this? I hit the same issue. Standalone vsphere instance.
@coffeegist please open new issue and describe details, reproduce the bug on the latest version of collection. I'll close the current issue, because it reproduse on unsupported version of collection.
SUMMARY
When I try to assign a role to a user on an ESXi 7.0.2 host using
community.vmware.vmware_object_role_permission
, I get the following error message:fatal: [sdvvmesx01 -> localhost]: FAILED! => {"changed": false, "msg": "A specified parameter was not correct: entity"}
The error occurs with both the latest stable version installable via pip and the devel branch.
I'm not sure what parameter this is supposed to be, because the documentation doesn't mention an "entity" parameter, and I haven't found a hint of it either in the module's code (well, I'm not a programmer, so... ). Hence, I assume that this is a bug in the module itself.
I'll be happy to provide you with more details if I can.
ISSUE TYPE
COMPONENT NAME
community.vmware.vmware_object_role_permission
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ansible Controller:
Ansible is running from a Python virtualenv based on Python 3.8.10. Package list inside the virtualenv:
Target system:
STEPS TO REPRODUCE
Run it with:
ANSIBLE_NOCOWS=true ansible-playbook tasks/main.yml -l myesxihost -i inv.yml -k -u root --ask-vault-pass
EXPECTED RESULTS
I expected the user to be tied to the role that existed on the ESXi server as shown on the ESXi webUI in "Host -> Permissions".
ACTUAL RESULTS