automatics.automatics.automatics_node_info module – Gather information on automatics nodes

Note

This module is part of the automatics.automatics collection (version version_filler).

To install it, use: ansible-galaxy collection install automatics.automatics.

To use it in a playbook, specify: automatics.automatics.automatics_node_info.

Synopsis

  • Gathers information on automatics nodes

Parameters

Parameter

Comments

auth_token

string / required

automatics authentication bearer token returned from automatics_login module

hostname

string / required

Hostname of the automatics server.

node

list / elements=dictionary

nodes in automatics to select for the operation (name/hostname matching)

dict containing ‘name’ and ‘client’ that must match the automatics name and client

client

string

the client to which the system is assigned

can either be the client id or client name

Default: "default client (id=1)"

name

string / required

must either match the node-name or node-hostname in automatics

node_id

list / elements=integer

nodes in automatics to select for the operation (id matching)

must match the automatics node-id

validate_certs

boolean

Verify the https certificate of the automatics server.

Choices:

  • false

  • true ← (default)

Notes

Note

  • either ‘node’ or ‘node_id’ is required

Examples

- name: Gather information on single automatics node
  automatics.automatics.automatics_node_info:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    node:
      name: sapsrv.example.org

- name: Gather information on multiple automatics nodes
  automatics.automatics.automatics_node_info:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    node:
      - name: sapsrv1.example.org
      - name: sapsrv2

- name: Gather information on multiple automatics nodes of different clients
  automatics.automatics.automatics_node_info:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    node:
      - name: sapsrv1.example.org
      - name: sapsrv2
      - name: sapsrv3.example.org
        client: 21
      - name: sapsrv2
        client: client_1

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

info

list / elements=dictionary

Information on given automatics nodes

Returned: always

Sample: [{"attributes": {"os.name": "Linux", "os.version": "4.18.0-477.21.1.el8_8.x86_64", "sap.daa.instance-id": "98", "sap.daa.is_installed": true, "sap.daa.sid": "DAA", "sap.host_agent.is_installed": true, "status.details": "Login succeeded with provided credentials", "status.timestamp": "1676268215"}, "children": [], "client": {"id": 1, "name": "automatics"}, "components": [{"attributes": {"sap.instance-id": "00", "sap.kernel.patch_level": "1019", "sap.kernel.release": "753", "sap.sid": "AUT", "status.details": "sap-aas-abap up", "status.timestamp": "1676268033"}, "description": "AAS-ABAP on Linux", "id": 2838, "name": "AUT-AS", "status": "up", "system": {"attributes": {"sap.kernel.patch_level": "1019", "sap.kernel.release": "753", "sap.product.name": "SAP NetWeaver", "sap.product.version": "7.50", "sap.sid": "AUT", "status.details": "All components of system AUT reported status [up].", "status.timestamp": "1676268039"}, "components": [], "dependencies": [], "dependents": [], "description": "SAP NetWeaver 7.50", "foreignComponents": [], "id": 1056, "name": "AUT", "status": "up", "tags": [{"id": 15, "name": "Linz", "tagGroup": {"color": "#148c8a", "id": 3, "name": "DC"}}], "type": "sap", "type_name": "SAP ABAP"}, "type": "sap-aas-abap", "type_name": "SAP ABAP Application Server"}], "description": "", "hostname": "aut-aut-app1.automatics.at", "id": 915, "name": "aut-aut-app1", "parent": null, "possibleChildren": [], "possibleParents": [], "status": "up", "tags": [{"id": 15, "name": "Linz", "tagGroup": {"color": "#148c8a", "id": 3, "name": "DC"}}], "technical_information": "Linux ", "type": "server", "type_name": "Server"}]

system_ids

dictionary

automatics System-IDs running on given nodes grouped by automatics System-Type

Returned: always

Sample: {"all": [1001, 1002, 1003, 1004, 1005], "sap": [1001, 1002], "sap-hana-db": [1005], "sap-wdp": [1003, 1004]}

Authors

  • Manuel Sanz