blob: 6252cc04fd429e5d4a1e2440022ef94cf5b25c24 (
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
|
---
# file: roles/common/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
|