Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_reset/tasks/lcstatus_check.yml

raw symbols SCIP
1 - name: Setting idrac_lc_status to default
2 ansible.builtin.set_fact:
3 idrac_lc_status:
4 LCStatus: ""
5 result_lc:
6 LCStatus: ""
7
8 - name: Add a delay
9 ansible.builtin.pause:
10 seconds: "{{ idrac_reset_delay }}"
11
12 - name: Get lifecycle controller status from iDRAC
13 ansible.builtin.uri:
14 url: "https://{{ hostname }}:{{ https_port }}/\
15 redfish/v1/Managers/iDRAC.Embedded.1/\
16 Oem/Dell/DellLCService/Actions/\
17 DellLCService.GetRemoteServicesAPIStatus"
18 user: "{{ username | default(lookup('env', 'IDRAC_USERNAME')) }}"
19 password: "{{ password |
20 default(lookup('env', 'IDRAC_PASSWORD')) }}"
21 validate_certs: "{{ validate_certs }}"
22 ca_path: "{{ ca_path | default(omit) }}"
23 headers: "{{ idrac_reset_uri_headers }}"
24 body_format: "{{ idrac_reset_uri_body_format }}"
25 return_content: "{{ idrac_reset_uri_return_content }}"
26 force_basic_auth: "{{ idrac_reset_force_basic_auth }}"
27 timeout: "{{ https_timeout }}"
28 method: "POST"
29 body: "{}"
30 status_code: 200
31 delegate_to: "{{ idrac_reset_task_delegate }}"
32 register: result_lc
33 until:
34 - result_lc is defined
35 - result_lc.json is defined
36 - result_lc.json.LCStatus is defined
37 - result_lc.json.LCStatus == 'Ready'
38 retries: '{{ idrac_reset_retries }}'
39 delay: "{{ idrac_reset_delay }}"
40
41 - name: Parse lifecycle controller status response
42 ansible.builtin.set_fact:
43 idrac_lc_status:
44 LCStatus: "{{ result_lc.json.LCStatus }}"
45 RTStatus: "{{ result_lc.json.RTStatus }}"
46 ServerStatus: "{{ result_lc.json.ServerStatus }}"
47 Status: "{{ result_lc.json.Status }}"
48
49 - name: Log the LC status
50 ansible.builtin.debug:
51 msg: "LC Status is Ready"
52 when: idrac_lc_status.LCStatus == "Ready"