community / community.sap_launchpad / 1.1.1 / module / systems_info Queries registered systems in me.sap.com | "added in version" 1.1.0 of community.sap_launchpad" Authors: Lab for SAP Solutionscommunity.sap_launchpad.systems_info (1.1.1) — module
Install with ansible-galaxy collection install community.sap_launchpad:==1.1.1
collections: - name: community.sap_launchpad version: 1.1.1
Fetch Systems from U(me.sap.com) with ODATA query filtering and returns the discovered Systems.
The query could easily copied from U(https://launchpad.support.sap.com/services/odata/i7p/odata/bkey)
- name: get system by SID and product community.sap_launchpad.systems_info: suser_id: 'SXXXXXXXX' suser_password: 'password' filter: "Insnr eq '12345678' and sysid eq 'H01' and ProductDescr eq 'SAP S/4HANA'" register: result
- name: Display the first returned system debug: msg: - "{{ result.systems[0] }}"
filter: description: - An ODATA filter expression to query the systems. required: true type: str suser_id: description: - SAP S-User ID. required: true type: str suser_password: description: - SAP S-User Password. required: true type: str
systems: description: the systems returned for the filter returned: always type: list