Closed liamwh closed 3 years ago
According to the docs the param should be hostname, but according to the API the param should be name.
Hi @liamwh, What is the state you have used for compliance..? Your playbook shows the variable name for state. Can you please disclose that state value so that I can start my debugging with that.
state: "{{ oneview_server_hardware_compliance_state }}"
If you are speaking about the below piece of code, then I have tried it with "name" and it worked perfectly for me. https://github.com/HewlettPackard/oneview-ansible/blob/master/examples/oneview_server_hardware.yml#L117-L123
Also as per your configuration, it shows python-hpOneView SDK Version: 0.15.2
as python module which is not compatible with our collections.
Can you please confirm the requested info.
I'm not sure where I got the value for the python-hpOneView SDK version, however after updating ansible to version 2.10.11 and using the hostname parameter (not name), the module worked successfully.
Scenario/Intent
Ensure Server Hardware Compliance
Environment Details
Steps to Reproduce
Expected Result
hostname to be a valid field. In a previous version of the module the ansible field was name.
Actual Result
If using name instead of hostname: