HewlettPackard / ilo-ansible-collection

Ansible Collection and Sample Playbooks for HPE iLO
Apache License 2.0
40 stars 21 forks source link

Add user task failing with 'Bad Request' #13

Closed kotireddy478 closed 1 year ago

kotireddy478 commented 1 year ago

Hi,

I'm using official HPE collection but add user failing with below error: Could you please help?

Ansible version: 2.11.3 Python version: 3.6.8

fatal: [host_name]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "account_properties": {},
            "auth_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "baseuri": "host_name",
            "boot_next": null,
            "boot_override_mode": null,
            "bootdevice": null,
            "category": "Accounts",
            "command": [
                "AddUser"
            ],
            "id": null,
            "new_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "new_username": "Bhavya_check2",
            "password": null,
            "resource_id": null,
            "roleid": "Administrator",
            "session_uri": null,
            "strip_etag_quotes": false,
            "timeout": 10,
            "uefi_target": null,
            "update_creds": null,
            "update_image_uri": null,
            "update_protocol": null,
            "update_targets": [],
            "update_username": null,
            "username": null,
            "virtual_media": null
        }
    },
    "msg": "HTTP Error 400 on POST request to 'https://host_name/redfish/v1/AccountService/Accounts', extended message: 'Bad Request'"
}
Bhavya06 commented 1 year ago

Hey @kotireddy478 !

I executed the add_user.yml playboook under roles/playbooks/Users/ I did not face any issue. Please refer the screenshot attached. Could you provide us more information on the values you passed, playbook executed? gihtub_add_user

rajeevkallur commented 1 year ago

Pls reopen if issue still exists