blob: 6e8734eaa90d208a9829b6ebbd43406a61c8832d (
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
|
---
# file: roles/baremetal/handlers/main.yaml
- name: IPMI specific
import_tasks: ipmi.yaml
when: inventory_ipmi_hostname is defined
tags:
- ipmi-handlers
- name: CIMC specific
import_tasks: cimc.yaml
when: inventory_cimc_hostname is defined
tags:
- cimc-handlers
- name: Reboot server
ansible.builtin.reboot:
reboot_timeout: 3600
tags:
- reboot-server
- name: Wait for server to restart
ansible.builtin.wait_for:
host: "{{ inventory_hostname }}"
search_regex: OpenSSH
port: 22
delay: 60
timeout: 3600
tags:
- reboot-server
|