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 |
|---|---|
automatics authentication bearer token returned from automatics_login module |
|
Hostname of the automatics server. |
|
nodes in automatics to select for the operation (name/hostname matching) dict containing ‘name’ and ‘client’ that must match the automatics name and client |
|
the client to which the system is assigned can either be the client id or client name Default: |
|
must either match the node-name or node-hostname in automatics |
|
nodes in automatics to select for the operation (id matching) must match the automatics node-id |
|
Verify the https certificate of the automatics server. Choices:
|
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 |
|---|---|
Information on given automatics nodes Returned: always Sample: |
|
automatics System-IDs running on given nodes grouped by automatics System-Type Returned: always Sample: |