Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/tasks/get_nic_info.yml

raw symbols SCIP
1 ---
2 - name: Get NIC information.
3 ansible.builtin.uri:
4 url: "https://{{ hostname }}:{{ https_port }}{{ api_system }}/EthernetInterfaces?$expand=*($levels=1)"
5 register: nic_result
6 delegate_to: "{{ idrac_gather_facts_delegate }}"
7
8 - name: Set NIC facts
9 ansible.builtin.set_fact:
10 nic:
11 "{{ nic_result.json.Members | ansible.utils.remove_keys(target=[
12 '@odata.context', '@odata.id', '@odata.etag', '@odata.type',
13 '[email protected]', '[email protected]',
14 '[email protected]', '[email protected]',
15 '[email protected]']) }}"
16
17 - name: Error capture
18 ansible.builtin.include_tasks:
19 file: ./__capture_error.yml
20 vars:
21 register_vars:
22 - "{{ nic_result }}"
23 component: 'nic'