Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/molecule/cpu-10626/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge idrac_gather_facts for CPU
3 hosts: all
4 connection: local
5 gather_facts: false
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 - CPU
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 system API
33 ansible.builtin.include_tasks:
34 ../../tests/asserts/_check_system_url.yml
35
36 - name: Gather Facts for the CPU component
37 ansible.builtin.include_role:
38 name: "idrac_gather_facts"
39
40 - name: Assert cpu dict for length
41 ansible.builtin.assert:
42 that:
43 - cpu | length > 0
44
45 - name: Call assertion
46 ansible.builtin.include_tasks: ../../tests/asserts/cpu_assert.yml
47 with_items: "{{ cpu }}"
48 loop_control:
49 loop_var: cpu_data
50 when: cpu | length > 0