sap.sap_operations.app_instance test – Test to check if the provided sap instance is SAP application 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.app_instance
.
New in sap.sap_operations 2.3.0
Synopsis
Test to check if the provided sap instance is SAP application 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.app_instance(key1=value1, key2=value2, ...)
and input is not sap.sap_operations.app_instance(key1=value1, key2=value2, ...)
Parameter |
Comments |
---|---|
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 APP instances
ansible.builtin.debug:
msg: "{{ host_info.instances | select('sap.sap_operations.app_instance') }}"
Return Value
Key |
Description |
---|---|
True if instance is SAP APP instance Returned: success Sample: |