-
The equivalent of Ansible's
gather_facts, but for gathering SAP facts -
Scans the host and populates a dictionary list
sap_factscontainingSIDTypeInstanceNumberInstanceType -
This is the foundation of every modules / roles / tasks not just for this Ansbile collection but for any other collections related to SAP
-
Full list of outputs:
Output Info Return Variable sap_nw_sid List of all SAP NW SIDs <register_variable>.sap_nw_sidsap_hana_sid List of all SAP HANA SIDs <register_variable>.sap_hana_sidsap_nw_nr List of all SAP NW instance numbers <register_variable>.sap_nw_nrsap_hana_nr List of all SAP HANA instance numbers <register_variable>.sap_hana_nrsap_facts Dictionary list of all the details <register_variable>.sap_facts -
Sample
sap_factsdictionary list generated:[ { "InstanceNumber": "00", "InstanceType": "HANA", "SID": "H20", "Type": "hana" }, { "InstanceNumber": "02", "InstanceType": "ASCS", "SID": "S4H", "Type": "nw" }, { "InstanceNumber": "01", "InstanceType": "PAS", "SID": "S4H", "Type": "nw" }, { "InstanceNumber": "03", "InstanceType": "WebDisp", "SID": "WD1", "Type": "nw" } ]