Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_reset_result_tracking.yml

raw symbols SCIP
1 ---
2 - name: Reset iDRAC
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Reset iDRAC
8 dellemc.openmanage.idrac_reset:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 register: result
14 failed_when: result is changed
15 delegate_to: localhost
16
17 - name: Wait for port 443 to become open on the host
18 ansible.builtin.wait_for:
19 host: "{{ idrac_ip }}"
20 port: 443
21 delay: 30
22 connect_timeout: 5
23 timeout: 500
24 register: result
25 failed_when: result.elapsed < 20
26 delegate_to: localhost
27
28 - name: Get LC status.
29 dellemc.openmanage.idrac_lifecycle_controller_status_info:
30 idrac_ip: "{{ idrac_ip }}"
31 idrac_user: "{{ idrac_user }}"
32 idrac_password: "{{ idrac_password }}"
33 ca_path: "/path/to/ca_cert.pem"
34 register: result
35 until: result.msg.LCStatus == 'Ready' or result.msg.LCReady is true
36 retries: 30
37 delay: 10
38 delegate_to: localhost