blob: 239b8973f797e87a36a9375b1b7aba142b17a7e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
# file: roles/baremetal/handlers/ipmi.yaml
- name: Boot from network
ipmi_boot:
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
bootdev: network
delegate_to: localhost
tags:
- boot-network
- name: Boot from storage
ipmi_boot:
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
bootdev: hd
delegate_to: localhost
tags:
- boot-storage
- name: Power up server
ipmi_power:
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
state: on
delegate_to: localhost
tags:
- power-up
- name: Power down server
ipmi_power:
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
state: off
delegate_to: localhost
tags:
- power-down
- name: Power cycle server
ipmi_power:
name: "{{ inventory_ipmi_hostname }}"
user: "{{ inventory_ipmi_username }}"
password: "{{ inventory_ipmi_password }}"
state: boot
delegate_to: localhost
tags:
- power-cycle
|