Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Get License information.
3 ansible.builtin.uri:
4 url: "https://{{ hostname }}:{{ https_port }}/redfish/v1/LicenseService/Licenses?$expand=*($levels=1)"
5 register: license_result
6 ignore_errors: true
7 delegate_to: "{{ idrac_gather_facts_delegate }}"
8
9 - name: Set License facts
10 ansible.builtin.set_fact:
11 license: "{{ license_result.json.Members | ansible.utils.remove_keys(
12 target=['@odata.context', '@odata.id', '@odata.etag', '@odata.type']) }}"
13 when: license_result.status == 200
14
15 - name: Error capture
16 ansible.builtin.include_tasks:
17 file: ./__capture_error.yml
18 vars:
19 register_vars:
20 - "{{ license_result }}"
21 component: 'license'