diff --git a/lib/ansible/module_utils/redfish_utils.py b/lib/ansible/module_utils/redfish_utils.py index 9a1c85cbd0e..c199bac9ec8 100644 --- a/lib/ansible/module_utils/redfish_utils.py +++ b/lib/ansible/module_utils/redfish_utils.py @@ -647,6 +647,8 @@ class RedfishUtils(object): payload = {'ResetType': 'On'} elif command == "PowerForceOff": payload = {'ResetType': 'ForceOff'} + elif command == "PowerForceRestart": + payload = {'ResetType': "ForceRestart"} elif command == "PowerGracefulRestart": payload = {'ResetType': 'GracefulRestart'} elif command == "PowerGracefulShutdown": diff --git a/lib/ansible/modules/remote_management/redfish/redfish_command.py b/lib/ansible/modules/remote_management/redfish/redfish_command.py index f909009d119..bc06f621e60 100644 --- a/lib/ansible/modules/remote_management/redfish/redfish_command.py +++ b/lib/ansible/modules/remote_management/redfish/redfish_command.py @@ -202,7 +202,7 @@ from ansible.module_utils._text import to_native # More will be added as module features are expanded CATEGORY_COMMANDS_ALL = { - "Systems": ["PowerOn", "PowerForceOff", "PowerGracefulRestart", + "Systems": ["PowerOn", "PowerForceOff", "PowerForceRestart", "PowerGracefulRestart", "PowerGracefulShutdown", "PowerReboot", "SetOneTimeBoot"], "Chassis": ["IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink"], "Accounts": ["AddUser", "EnableUser", "DeleteUser", "DisableUser",