Debian Codegraph @

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

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