sap.sap_operations.valid_sid filter – Verify that SAP system ID (SID) is valid.

Note

This filter plugin is part of the sap.sap_operations collection.

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install sap.sap_operations.

To use it in a playbook, specify: sap.sap_operations.valid_sid.

New in sap.sap_operations 1.0.4

Synopsis

  • 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.

Keyword parameters

This describes keyword parameters of the filter. These are the values key1=value1, key2=value2 and so on in the following example: input | sap.sap_operations.valid_sid(key1=value1, key2=value2, ...)

Parameter

Comments

value

string / required

System ID (SID) to check if valid.

Examples

- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: ( 'ABC'| sap.sap_operations.valid_sid )

- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'AbC'| sap.sap_operations.valid_sid )

- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'ADD'| sap.sap_operations.valid_sid )

- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( '1BC'| sap.sap_operations.valid_sid )

- name: Test filter `valid_sid`, this assertion is True
  ansible.builtin.assert:
    that: not ( 'A?C'| sap.sap_operations.valid_sid )

Return Value

Key

Description

data

boolean

True if valid SID is provided

False if non valid SID is provided

Returned: success

Authors

  • Kirill Satarin (@kksat)

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.