Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ansible: Add CIMC/IPMI/COBBLER
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
common
/
handlers
/
main.yaml
diff --git
a/resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
b/resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
index
bdcf683
..
f994afd
100644
(file)
--- a/
resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
+++ b/
resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml
@@
-1,6
+1,30
@@
---
# file: roles/common/handlers/main.yaml
---
# file: roles/common/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: Update GRUB
command: update-grub
tags: update-grub
- name: Update GRUB
command: update-grub
tags: update-grub
+
+- name: Reboot server
+ reboot:
+ reboot_timeout: 3600
+ tags: reboot-server
+
+- name: Wait for server to restart
+ wait_for:
+ host: '{{ inventory_hostname }}'
+ search_regex: OpenSSH
+ port: 22
+ delay: 60
+ timeout: 3600
+ tags: reboot-server