blob: b3cc3d0a827f7533061843bacda0cecad04c89aa (
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: true
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: false
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
|