sap.sap_operations.me_aliases filter – Return all the aliases that are available

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

New in sap.sap_operations 1.33.0

Synopsis

  • Return all the aliases that are available

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.me_aliases(key1=value1, key2=value2, ...)

Parameter

Comments

dummy

string

Dummy value to make the module work.

Notes

Note

  • This module is community supported

  • Module interface (parameters, output) expected to be stable but not guaranteed

  • Module planned to be released on Ansible Automation Hub after collecting some feedback

  • There is no guarantee that this module will be officially supported by Red Hat

Examples

---
- name: Test 'me_aliases' filter, this assertion is True
  ansible.builtin.assert:
  that:
    - ( 'dummy' | sap.sap_operations.me_aliases ) is defined
    - ( 'dummy' | sap.sap_operations.me_aliases ) is iterable
    - ( 'dummy' | sap.sap_operations.me_aliases ) is contains('sapcar')
    - ( 'dummy' | sap.sap_operations.me_aliases ) is contains('hana-server')

Return Value

Key

Description

data

list / elements=string

List of aliases that are supported by sap.sap_operations collection

Returned: success

Sample: ["sapcar", "sapcar-7.53", "sapcar-7.22", "saphostagent", "saphostagent-7.22", "hana-server", "hana-client", "hana-cockpit", "swpm-1.0", "swpm-2.0"]

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.