feat(ansible): Migrate Ubuntu Jammy II
[csit.git] / fdio.infra.ansible / roles / baremetal / handlers / main.yaml
1 ---
2 # file: roles/baremetal/handlers/main.yaml
3
4 - name: IPMI specific
5   import_tasks: ipmi.yaml
6   when: inventory_ipmi_hostname is defined
7   tags:
8     - ipmi-handlers
9
10 - name: CIMC specific
11   import_tasks: cimc.yaml
12   when: inventory_cimc_hostname is defined
13   tags:
14     - cimc-handlers
15
16 - name: Reboot server
17   ansible.builtin.reboot:
18     reboot_timeout: 3600
19   tags:
20     - reboot-server
21
22 - name: Wait for server to restart
23   ansible.builtin.wait_for:
24     host: "{{ inventory_hostname }}"
25     search_regex: OpenSSH
26     port: 22
27     delay: 60
28     timeout: 3600
29   tags:
30     - reboot-server