# idrac_reset Role to reset and restart iDRAC (iDRAC8 and iDRAC9 only) for Dell PowerEdge servers. ## Requirements ### Development Requirements to develop and contribute to the role. ``` ansible docker molecule python ``` ### Production Requirements to use the role. ``` ansible python ``` ### Ansible collections Collections required to use the role ``` dellemc.openmanage ``` ## Role Variables reset_to_default:
Name Required Default Value Choices Type Description
hostname true str - iDRAC IP Address
username true str - iDRAC username
password true str - iDRAC user password.
https_port false 443 int - iDRAC port.
validate_certs false true bool - If C(false), the SSL certificates will not be validated.
- Configure C(false) only on personally controlled sites where self-signed certificates are used.
ca_path false path - The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.
https_timeout false 30 int - The HTTPS socket level timeout in seconds.
wait_for_idrac false true bool - Wait for the iDRAC to restart and LC status to be ready.
- When I(reset_to_default) is C(All), the IP address of iDRAC might not be accessible because of the change in network settings.
- When I(reset_to_default) is C(ResetAllWithRootDefaults), the IP address of iDRAC might not be accessible because of the change in network settings.
force_reset false false bool - Force restart the idrac without checking the idrac lifecycle controller status.
reset_to_default false ["All", "ResetAllWithRootDefaults", "Default"] str - Reset the iDRAC to factory default settings.
- If this value is not set, then the default behaviour is to restart the iDRAC.
- C(All)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. Username and password will reset to default credentials.
- C(ResetAllWithRootDefaults)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. Default username will reset to root and password to the shipping value (root/shipping value).
- C(Default)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. User and network settings will be preserved.
- "Note: Supported only for iDRAC9."
## Fact variables
Name Sample Description
idrac_reset_out {"msg": "iDRAC reset operation completed successfully" } Module output of idrac reset
## Examples ----- ``` - name: Restart the idrac and wait for the idrac to be ready ansible.builtin.include_role: name: idrac_reset vars: hostname: "192.168.0.1" username: "username" password: "password" - name: Restart the idrac and do not wait for the idrac to be ready ansible.builtin.include_role: name: idrac_reset vars: hostname: "192.168.0.1" username: "username" password: "password" wait_for_idrac: false - name: Reset the idrac and wait for the idrac to be ready ansible.builtin.include_role: name: idrac_reset vars: hostname: "192.168.0.1" username: "username" password: "password" reset_to_default: "All" ``` ## Author Information ------------------ Dell Technologies
Kritika Bhateja (Kritika.Bhateja@Dell.com) 2023