HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_user.yml
---
- hosts: idrac
  connection: local
  name: Configure the iDRAC users attributes
  gather_facts: False

  collections:
    - dellemc.openmanage

  tasks:
  - name: Configure the create iDRAC users attributes
    idrac_user:
       idrac_ip: "{{ idrac_ip }}"
       idrac_user: "{{ idrac_user }}"
       idrac_password: "{{ idrac_password }}"
       ca_path: "/path/to/ca_cert.pem"
       state: "present"
       user_name: "user_name"
       user_password: "user_password"
       privilege: "Administrator"
       ipmi_lan_privilege: "User"
       enable: "true"
       sol_enable: "true"
       protocol_enable: "true"
       authentication_protocol: "MD5"
       privacy_protocol: "DES"
    tags:
      - create-user

  - name: Configure the modify iDRAC users attributes
    idrac_user:
       idrac_ip: "{{ idrac_ip }}"
       idrac_user: "{{ idrac_user }}"
       idrac_password: "{{ idrac_password }}"
       ca_path: "/path/to/ca_cert.pem"
       action: "present"
       user_name: "user_name"
       new_user_name: "new_user_name"
       privilege: "Administrator"
       ipmi_lan_privilege: "User"
       enable: "true"
       sol_enable: "true"
       protocol_enable: "true"
       authentication_protocol: "MD5"
       privacy_protocol: "DES"
    tags:
      - modify-user

  - name: Configure the modify iDRAC username and password attributes.
    idrac_user:
       idrac_ip: "{{ idrac_ip }}"
       idrac_user: "{{ idrac_user }}"
       idrac_password: "{{ idrac_password }}"
       ca_path: "/path/to/ca_cert.pem"
       action: "present"
       user_name: "user_name"
       new_user_name: "new_user_name"
       user_password: "user_password"
    tags:
      - modify-username

  - name: Configure the delete iDRAC users attributes
    idrac_user:
       idrac_ip: "{{ idrac_ip }}"
       idrac_user: "{{ idrac_user }}"
       idrac_password: "{{ idrac_password }}"
       ca_path: "/path/to/ca_cert.pem"
       state: "absent"
       user_name: "user_name"
    tags:
      - remove-user