This is a simple plugin that collects all data from ansible-facts and outputs it.
Install via Poetry:
python3 -m poetry install --without dev
Run by executing the following command:
python3 metadata_plugin.py
Collects ansible facts metadata
| Type: | scope | ||||
|---|---|---|---|---|---|
| Root object: | InputParams | ||||
| Properties | |||||
ObjectsInputParams (
| |||||
| Type: | object |
|---|---|
| Properties |
| Type: | scope | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Root object: | ErrorOutput | ||||||||
| Properties | error (
| ||||||||
| Required: | Yes |
|---|---|
| Type: | string |
Objects
ErrorOutput (object)
| Type: | object | ||||
|---|---|---|---|---|---|
| Properties | error (
|
| Required: | Yes |
|---|---|
| Type: | string |
| Type: | scope | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Root object: | SelectedFacts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties | architecture (
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: | ansible architecture |
|---|---|
| Description: | The system architecture |
| Required: | Yes |
| Type: | string |
env (map[string,string])
string,string]| Name: | ansible env | ||
|---|---|---|---|
| Description: | The system environment variables | ||
| Required: | Yes | ||
| Type: | map[ | ||
Key type
| |||
Value type
| |||
fqdn (string)
| Name: | ansible fqdn |
|---|---|
| Description: | The system fully-qualified domain name |
| Required: | Yes |
| Type: | string |
kernel (string)
| Name: | ansible kernel |
|---|---|
| Description: | The system OS kernel |
| Required: | Yes |
| Type: | string |
memtotal_mb (int)
| Name: | ansible memtotal MB |
|---|---|
| Description: | The system total memory in MB |
| Required: | Yes |
| Type: | int |
processor (list[string])
string]| Name: | ansible processor | ||
|---|---|---|---|
| Description: | The system processor list | ||
| Required: | Yes | ||
| Type: | list[ | ||
List items
| |||
processor_cores (int)
| Name: | ansible processor cores |
|---|---|
| Description: | The system total processor cores |
| Required: | Yes |
| Type: | int |
processor_count (int)
| Name: | ansible processor count |
|---|---|
| Description: | The system total processor count |
| Required: | Yes |
| Type: | int |
processor_threads_per_core (int)
| Name: | ansible processor threads per core |
|---|---|
| Description: | The system threads per processor core |
| Required: | Yes |
| Type: | int |
product_name (string)
| Name: | ansible product name |
|---|---|
| Description: | The system product name |
| Required: | Yes |
| Type: | string |
product_version (string)
| Name: | ansible product version |
|---|---|
| Description: | The system product version |
| Required: | Yes |
| Type: | string |
swaptotal_mb (int)
| Name: | ansible swaptotal mb |
|---|---|
| Description: | The system swap size in MB |
| Required: | Yes |
| Type: | int |
system_vendor (string)
| Name: | ansible system vendor |
|---|---|
| Description: | The system vendor |
| Required: | Yes |
| Type: | string |
uptime_seconds (int)
| Name: | ansible uptime seconds |
|---|---|
| Description: | The system uptime in seconds |
| Required: | Yes |
| Type: | int |
Objects
SelectedFacts (object)
| Type: | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Properties | architecture (
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: | ansible architecture |
|---|---|
| Description: | The system architecture |
| Required: | Yes |
| Type: | string |
env (map[string,string])
string,string]| Name: | ansible env | ||
|---|---|---|---|
| Description: | The system environment variables | ||
| Required: | Yes | ||
| Type: | map[ | ||
Key type
| |||
Value type
| |||
fqdn (string)
| Name: | ansible fqdn |
|---|---|
| Description: | The system fully-qualified domain name |
| Required: | Yes |
| Type: | string |
kernel (string)
| Name: | ansible kernel |
|---|---|
| Description: | The system OS kernel |
| Required: | Yes |
| Type: | string |
memtotal_mb (int)
| Name: | ansible memtotal MB |
|---|---|
| Description: | The system total memory in MB |
| Required: | Yes |
| Type: | int |
processor (list[string])
string]| Name: | ansible processor | ||
|---|---|---|---|
| Description: | The system processor list | ||
| Required: | Yes | ||
| Type: | list[ | ||
List items
| |||
processor_cores (int)
| Name: | ansible processor cores |
|---|---|
| Description: | The system total processor cores |
| Required: | Yes |
| Type: | int |
processor_count (int)
| Name: | ansible processor count |
|---|---|
| Description: | The system total processor count |
| Required: | Yes |
| Type: | int |
processor_threads_per_core (int)
| Name: | ansible processor threads per core |
|---|---|
| Description: | The system threads per processor core |
| Required: | Yes |
| Type: | int |
product_name (string)
| Name: | ansible product name |
|---|---|
| Description: | The system product name |
| Required: | Yes |
| Type: | string |
product_version (string)
| Name: | ansible product version |
|---|---|
| Description: | The system product version |
| Required: | Yes |
| Type: | string |
swaptotal_mb (int)
| Name: | ansible swaptotal mb |
|---|---|
| Description: | The system swap size in MB |
| Required: | Yes |
| Type: | int |
system_vendor (string)
| Name: | ansible system vendor |
|---|---|
| Description: | The system vendor |
| Required: | Yes |
| Type: | string |
uptime_seconds (int)
| Name: | ansible uptime seconds |
|---|---|
| Description: | The system uptime in seconds |
| Required: | Yes |
| Type: | int |