sap / sap.sap_operations / 1.25.0 / filter / license_content Get sap license attributes from sap license file | "added in version" 1.8.0-galaxy of sap.sap_operations" Authors: Kirill Satarin (@kksat)sap.sap_operations.license_content (1.25.0) — filter
Install with ansible-galaxy collection install sap.sap_operations:==1.25.0
collections: - name: sap.sap_operations version: 1.25.0
Get sap license attributes from sap license file
This filter will parse sap license file and return dictionary with license attributes
If no line '----- Begin SAP License -----' found, filter will return empty list
- name: Get sap license attributes from sap license file ansible.builtin.debug: msg: "{{ lookup('file', '/usr/sap/AAA/SYS/saplicense') | license_content }}"
value: description: Content of the sap license file required: true type: dict
data: description: - List of dictionaries with sap license attributes elements: dict example: - begin_of_validity: '20200107' end_of_validity: '99991231' hardware_key: D1111111111 installation_number: '0000000000' license_key: MIIBOgYJ software_product: NetWeaver_SYB software_product_limit: '2000000000' system_id: AAA system_number: '000000000000000000' - begin_of_validity: '20200107' end_of_validity: '20200408' hardware_key: D1111111111 installation_number: '0000000000' license_key: MIIBOwY... software_product: Maintenance_SYB software_product_limit: '2000000000' system_id: AAA system_number: '000000000000000000' returned: Success type: list