Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/molecule/hostnic-10630/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge idrac_gather_facts for HostNIC
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 - HostNIC
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 HostNIC component
30 ansible.builtin.include_role:
31 name: "idrac_gather_facts"
32
33 - name: Assert hostnic dict for length
34 ansible.builtin.assert:
35 that:
36 - hostnic | length > 0
37
38 - name: Call assertion
39 ansible.builtin.include_tasks: ../../tests/asserts/hostnic_assert.yml
40 with_items: "{{ hostnic }}"
41 loop_control:
42 loop_var: hostnic_data
43 when: hostnic | length > 0