Deprecated

Removed in 2.13

i

Reason:Replaced with M(redfish_powerstate). | Alternative:Use M(redfish_powerstate) instead.

dellemc.openmanage.dellemc_change_power_state (2.1.5) — module

Server power control.

| "added in version" 2.9 of dellemc.openmanage"

Authors: Sajna Shetty(@Sajna-Shetty), Felix Stephen (@felixs88)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install dellemc.openmanage:==2.1.5


Add to requirements.yml

  collections:
    - name: dellemc.openmanage
      version: 2.1.5

Description

Server power control operations.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Change power state
  dellemc.openmanage.dellemc_change_power_state:
       idrac_ip:   "192.168.0.1"
       idrac_user: "idrac_user"
       idrac_password:  "idrac_password"
       reset_type: "ForceRestart"

Inputs

    
idrac_ip:
    description: iDRAC IP Address.
    required: true
    type: str

idrac_port:
    default: 443
    description: iDRAC port.
    required: false
    type: int

idrac_user:
    description: iDRAC username.
    required: true
    type: str

reset_type:
    choices:
    - 'On'
    - ForceOff
    - ForceRestart
    - GracefulShutdown
    - PushPowerButton
    - Nmi
    description:
    - This option resets the system.
    - C(ForceRestart) is applicable for idrac firmware versions from 3.30.30.30 and above.
    required: false
    type: str

change_power:
    choices:
    - 'On'
    - ForceOff
    - GracefulRestart
    - GracefulShutdown
    - PushPowerButton
    - Nmi
    description:
    - (deprecated)Desired power state.
    - This option will be deprecated from Ansible version 2.14 onwards. It will be replaced
      with I(reset_type).
    - C(GracefulRestart) is applicable for idrac firmware versions below 3.30.30.30.
    required: false
    type: str

idrac_password:
    aliases:
    - idrac_pwd
    description: iDRAC user password.
    required: true
    type: str