Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_boot/molecule/__lc_status_check.yaml

raw symbols SCIP
1 ---
2 - name: Constructing url
3 ansible.builtin.set_fact:
4 url_1: "https://{{ hostname | ansible.utils.ipwrap }}:"
5 url_2: "{{ https_port }}/redfish/v1/Managers/"
6 url_3: "iDRAC.Embedded.1/Oem/Dell/DellLCService/Actions"
7 url_4: "/DellLCService.GetRemoteServicesAPIStatus"
8
9 - name: Final url
10 ansible.builtin.set_fact:
11 lc_status_url: "{{ url_1 }}{{ url_2 }}{{ url_3 }}{{ url_4 }}"
12
13 - name: Fetching lifecycle controller status info
14 ansible.builtin.uri:
15 url: "{{ lc_status_url }}"
16 user: "{{ username }}"
17 password: "{{ password }}"
18 validate_certs: "{{ validate_certs }}"
19 ca_path: "{{ ca_path | default(omit) }}"
20 headers:
21 Accept: "application/json"
22 Content-Type: "application/json"
23 OData-Version: "4.0"
24 body_format: "json"
25 method: POST
26 body: {}
27 return_content: true
28 force_basic_auth: true
29 timeout: "{{ https_timeout }}"
30 check_mode: false
31 register: result
32 until: result.json.LCStatus == "Ready"
33 retries: 240
34 delay: 15
35
36 - name: Waiting for 1 min even after LCStatus is Ready before proceeding
37 ansible.builtin.wait_for:
38 timeout: 60
39 when: result.json.LCStatus == "Ready"
40 check_mode: false