sap.sap_operations.license_content (1.25.0) — filter

Get sap license attributes from sap license file

| "added in version" 1.8.0-galaxy of sap.sap_operations"

Authors: Kirill Satarin (@kksat)

Install collection

Install with ansible-galaxy collection install sap.sap_operations:==1.25.0


Add to requirements.yml

  collections:
    - name: sap.sap_operations
      version: 1.25.0

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: Get sap license attributes from sap license file
  ansible.builtin.debug:
    msg: "{{ lookup('file', '/usr/sap/AAA/SYS/saplicense') | license_content }}"

Inputs

    
value:
    description: Content of the sap license file
    required: true
    type: dict

Outputs

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