sap.sap_operations.me_valid_alias (1.25.0) — test

Return true if string provided is valid software alias.

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

Return true if string provided is valid software alias.

Usage examples

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

- name: Test 'me_valid_alias' test plugin, this assertion is True
  ansible.builtin.assert:
    that: "{{ 'saphostagent' is sap.sap_operations.me_valid_alias }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test 'me_valid_alias' test plugin, this assertion is True
  ansible.builtin.assert:
    that: "{{ 'hana-client' is sap.sap_operations.me_valid_alias }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Test 'me_valid_alias' test plugin, this assertion is True
  ansible.builtin.assert:
    that: "{{ 'does_not_exist' is not sap.sap_operations.me_valid_alias }}"

Inputs

    
value:
    description: Value to check.
    required: true
    type: str

Outputs

_value:
  description: True if value provided is valid alias.
  type: boolean