Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/molecule/enclosure-10667/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge idrac_gather_facts for Enclosure
3 hosts: all
4 connection: local
5 gather_facts: true
6 vars:
7 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
8 username: "{{ lookup('env', 'IDRAC_USER') }}"
9 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
10 idrac_port: "{{ lookup('env', 'IDRAC_PORT') }}"
11 validate_certs: false
12 target:
13 - Enclosure
14 idrac_gather_facts_uri_method: "GET"
15 idrac_gather_facts_uri_headers:
16 Accept: "application/json"
17 Content-Type: "application/json"
18 OData-Version: "4.0"
19 idrac_gather_facts_uri_body_format: "json"
20 idrac_gather_facts_uri_status_code:
21 - 200
22 - 400
23 - 401
24 - 404
25 - -1
26 idrac_gather_facts_uri_return_content: true
27 diff_data: {}
28 exclude_keys: []
29
30 tasks:
31
32 - name: Find the chassis API
33 ansible.builtin.include_tasks:
34 ../../tests/asserts/_check_chassis_url.yml
35
36 - name: Set 17G url
37 ansible.builtin.set_fact:
38 url1:
39 "https://{{ hostname }}{{ api_chassis }}/Oem/Dell/DellEnclosures/"
40 when:
41 - not is_omsdk_required | bool
42
43 - name: Set <17G url
44 ansible.builtin.set_fact:
45 url1:
46 "https://{{ hostname }}/redfish/v1/Chassis/Oem/Dell/DellEnclosures/"
47 when:
48 - is_omsdk_required | bool
49
50 - name: Gather Facts for the Enclosure component
51 ansible.builtin.include_role:
52 name: "idrac_gather_facts"
53
54 - name: Gather enclosure data
55 ansible.builtin.debug:
56 var: enclosure_data
57
58 - name: Assert enclosure dict for length
59 ansible.builtin.assert:
60 that:
61 - "{{ enclosure | length > 0 }}"
62 when: enclosure_result.status == 200
63
64 - name: Call assertion
65 ansible.builtin.include_tasks: ../../tests/asserts/enclosure_assert.yml
66 with_items: "{{ enclosure }}"
67 loop_control:
68 loop_var: enclosure_data
69 when: enclosure | length > 0