sap.sap_operations.ascs_instance test – Test to check if the provided sap instance is SAP ASCS instance.

Note

This test 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.ascs_instance.

New in sap.sap_operations 2.3.0

Synopsis

  • Test to check if the provided sap instance is SAP ASCS instance.

  • This test filter is expected to be used with combination of sap.sap_operations.host_info module

  • Type of instance is determined by processes this instance runs (ProcessList value)

Keyword parameters

This describes keyword parameters of the test. These are the values key1=value1, key2=value2 and so on in the following examples: input is sap.sap_operations.ascs_instance(key1=value1, key2=value2, ...) and input is not sap.sap_operations.ascs_instance(key1=value1, key2=value2, ...)

Parameter

Comments

value

string / required

One of the instances, returned by sap.sap_operations.host_info

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

See Also

See also

sap.sap_operations.host_info

Collect information about installed SAP instances on the host.

Examples

- name: Get all sap instances
  sap.sap_operations.host_info:
  become: true
  become_user: root
  register: host_info

- name: Filter only SAP ASCS instances
  ansible.builtin.debug:
    msg: "{{ host_info.instances | select('sap.sap_operations.ascs_instance') }}"

Return Value

Key

Description

Return value

boolean

True if instance is SAP ASCS instance

Returned: success

Sample: true

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.