sap.sap_operations.valid_sid (1.25.0) — filter

Verify that SAP system ID (SID) is valid.

| "added in version" 1.0.4 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

Check if SAP system ID (sid) is valid as per SAP notes 1979280 - Reserved SAP System Identifiers (SAPSID) with Software Provisioning Manager 2952755 - What to enter for System ID while creating a system and/or license keys?

Expects that sid is in uppercase, all lowercase considered not valid.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: ( 'ABC'| sap.sap_operations.valid_sid )
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'AbC'| sap.sap_operations.valid_sid )
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'ADD'| sap.sap_operations.valid_sid )
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( '1BC'| sap.sap_operations.valid_sid )
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'A?C'| sap.sap_operations.valid_sid )

Inputs

    
value:
    description: 'System ID (SID) to check if valid.

      '
    required: true
    type: str

Outputs

data:
  description:
  - True if valid SID is provided
  - False if non valid SID is provided
  type: bool