community.general.ipmi_power (0.1.4) — module

Power management for machine

Authors: Bulat Gaifullin (@bgaifullin) <gaifullinbf@gmail.com>

Install collection

Install with ansible-galaxy collection install community.general:==0.1.4


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

Description

Use this module for power management


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure machine is powered on
  ipmi_power:
    name: test.testdomain.com
    user: admin
    password: password
    state: on

Inputs

    
name:
    description:
    - Hostname or ip address of the BMC.
    required: true

port:
    default: 623
    description:
    - Remote RMCP port.

user:
    description:
    - Username to use to connect to the BMC.
    required: true

state:
    choices:
    - on -- Request system turn on
    - off -- Request system turn off without waiting for OS to shutdown
    - shutdown -- Have system request OS proper shutdown
    - reset -- Request system reset without waiting for OS
    - boot -- If system is off, then 'on', else 'reset'
    description:
    - Whether to ensure that the machine in desired state.
    required: true

timeout:
    default: 300
    description:
    - Maximum number of seconds before interrupt request.

password:
    description:
    - Password to connect to the BMC.
    required: true

Outputs

powerstate:
  description: The current power state of the machine.
  returned: success
  sample: true
  type: str