Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redfish Account settings #6823

Closed
1 task done
sseekamp opened this issue Jun 30, 2023 · 2 comments · Fixed by #6871
Closed
1 task done

Redfish Account settings #6823

sseekamp opened this issue Jun 30, 2023 · 2 comments · Fixed by #6871
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@sseekamp
Copy link
Contributor

Summary

I am trying to set the "AccountTypes" array for a Redfish user and it doesn't appear to be supported in the current redfish_command module.

We are looking to do the equivalent of:

curl -v -s -k -L -X PATCH -u bmcuser:bmcpass
https://x.x.x.x/redfish/v1/AccountService/Accounts/4
-H "If-Match: W/"XXXXXXX""
-H 'Content-Type: application/json'
-d '{ "AccountTypes": [ "Redfish", "KVMIP" ]}'

Issue Type

Feature Idea

Component Name

redfish_command

Additional Information

Ideally it would be great to have an option like:

- name: Add user
  community.general.redfish_command:
    category: Accounts
    command: UpdateUser/AddUser
    baseuri: "{{ baseuri }}"
    username: "{{ username }}"
    password: "{{ password }}"
    new_username: "{{ new_username }}"
    new_password: "{{ new_password }}"
    roleid: "{{ roleid }}"
    account_types:
      - KVMIP
      - Redfish
      - SNMP
      - etc

Thanks!

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants