Files
offline_kubespray/collection/dellemc/openmanage/playbooks/redfish/redfish_powerstate.yml
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

25 lines
597 B
YAML

---
- hosts: redfish
connection: local
name: Configure Server Power Setting
gather_facts: False
collections:
- dellemc.openmanage
tasks:
- name: Manage power state of the first device.
redfish_powerstate:
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
reset_type: "On"
- name: Manage power state of a specified device.
redfish_powerstate:
baseuri: "{{ baseuri }}"
username: "{{ username }}"
password: "{{ password }}"
reset_type: "ForceOff"
resource_id: "System.Embedded.1"