Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/redfish/redfish_powerstate.yml

raw symbols SCIP
1 ---
2 - name: Configure Server Power Setting
3 hosts: redfish
4 gather_facts: false
5
6 tasks:
7 - name: Manage power state of the first device.
8 dellemc.openmanage.redfish_powerstate:
9 baseuri: "{{ baseuri }}"
10 username: "{{ username }}"
11 password: "{{ password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 reset_type: "On"
14 delegate_to: localhost
15
16 - name: Manage power state of a specified device.
17 dellemc.openmanage.redfish_powerstate:
18 baseuri: "{{ baseuri }}"
19 username: "{{ username }}"
20 password: "{{ password }}"
21 ca_path: "/path/to/ca_cert.pem"
22 reset_type: "ForceOff"
23 resource_id: "System.Embedded.1"
24 delegate_to: localhost
25
26 - name: Perform AC Power Cycle with final power state On
27 dellemc.openmanage.redfish_powerstate:
28 baseuri: "192.168.0.1"
29 username: "username"
30 password: "password"
31 ca_path: "/path/to/ca_cert.pem"
32 oem_reset_type:
33 dell:
34 final_power_state: "On"
35 reset_type: "PowerCycle"
36
37 - name: Perform AC Power Cycle with final power state Off
38 dellemc.openmanage.redfish_powerstate:
39 baseuri: "192.168.0.1"
40 username: "username"
41 password: "password"
42 ca_path: "/path/to/ca_cert.pem"
43 oem_reset_type:
44 dell:
45 final_power_state: "Off"
46 reset_type: "PowerCycle"