community.sap_libs.sap_system_facts module – Gathers SAP facts in a host

Note

This module is part of the community.sap_libs collection (version 1.4.2).

You might already have this collection installed if you are using the ansible package. 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 community.sap_libs.

To use it in a playbook, specify: community.sap_libs.sap_system_facts.

New in community.sap_libs 1.0.0

Synopsis

  • This facts module gathers SAP system facts about the running instance.

Notes

Note

  • Supports check_mode.

Examples

- name: Return SAP system ansible_facts
  community.sap_libs.sap_system_facts:

Returned Facts

Facts returned by this module are added/updated in the hostvars host facts and can be referenced by name just like any other host fact. They do not need to be registered in order to use them.

Key

Description

sap

list / elements=dictionary

Facts about the running SAP systems.

Returned: When SAP system fact is present

Sample: [{"InstanceType": "NW", "NR": "00", "SID": "ABC", "TYPE": "ASCS"}, {"InstanceType": "NW", "NR": "01", "SID": "ABC", "TYPE": "PAS"}, {"InstanceType": "HANA", "NR": "02", "SID": "HDB", "TYPE": "HDB"}, {"InstanceType": "NW", "NR": "80", "SID": "WEB", "TYPE": "WebDisp"}]

Authors

  • Rainer Leber (@rainerleber)