dellemc-openmanage-ansible-modules icon indicating copy to clipboard operation
dellemc-openmanage-ansible-modules copied to clipboard

IDRAC9 get local user list

Open sysadm24 opened this issue 4 years ago • 1 comments

Description
New or existing component

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

sysadm24 avatar Apr 20 '22 22:04 sysadm24

@sysadm24, you should be able to get a list of all local users by making a direct call to iDRAC REST API using the ansible.builtin.uri module.

 tasks:
 - ansible.builtin.uri:
     url: "https://{{ inventory_hostname}}/redfish/v1/AccountService/Accounts?$expand=*"
     user: "{{ user }}"
     password: "{{ password }}"
     method: "GET"
     status_code: 200
     validate_certs: no
     force_basic_auth: yes
     headers:
       Accept: "application/json"

anupamaloke avatar May 11 '22 10:05 anupamaloke

Closed by #458

anupamaloke avatar Nov 28 '22 08:11 anupamaloke