Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.ipmi_power.
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| name string / required | Hostname or ip address of the BMC. | |
| password string / required | Password to connect to the BMC. | |
| port string | Default: 623 | Remote RMCP port. |
| state string / required |
| Whether to ensure that the machine in desired state. |
| timeout string | Default: 300 | Maximum number of seconds before interrupt request. |
| user string / required | Username to use to connect to the BMC. |
- name: Ensure machine is powered on
community.general.ipmi_power:
name: test.testdomain.com
user: admin
password: password
state: on
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description |
|---|---|---|
| powerstate string | success | The current power state of the machine. Sample: True |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/ipmi_power_module.html