Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/molecule/license-10634/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge idrac_gather_facts for License
3 hosts: all
4 gather_facts: false
5 vars:
6 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
7 username: "{{ lookup('env', 'IDRAC_USER') }}"
8 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
9 validate_certs: false
10 target:
11 - License
12 idrac_gather_facts_uri_method: "GET"
13 idrac_gather_facts_uri_headers:
14 Accept: "application/json"
15 Content-Type: "application/json"
16 OData-Version: "4.0"
17 idrac_gather_facts_uri_body_format: "json"
18 idrac_gather_facts_uri_status_code:
19 - 200
20 - 400
21 - 401
22 - 404
23 - -1
24 idrac_gather_facts_uri_return_content: true
25 diff_data: {}
26 exclude_keys: []
27
28 tasks:
29 - name: Gather Facts for the License component
30 ansible.builtin.include_role:
31 name: "idrac_gather_facts"
32
33 - name: Assert license dict for length
34 ansible.builtin.assert:
35 that:
36 - "{{ license | length > 0 }}"
37 when: license_result.status == 200
38
39 - name: Call assertion
40 ansible.builtin.include_tasks: ../../tests/asserts/license_assert.yml
41 with_items: "{{ license }}"
42 loop_control:
43 loop_var: license_data
44 when: license | length > 0