Inventory Operations
tm_inventoryManage SSH hosts via YAML inventory: configure keys, run commands, transfer files, and copy SSH config across host groups.
Instructions
Bulk inventory operations against YAML host groups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | Local SSH config path (copy_ssh_config). | |
| cmd | No | Shell command (run_command). | |
| key | No | Shared key path (configure_key_auth). | /app/.ssh/id_ed25519 |
| group | No | Target group. | all |
| lpath | No | Local file path (send_file). | |
| rpath | No | Remote file path (send_file/receive_file). | |
| action | Yes | Action: 'configure_key_auth', 'mesh_bootstrap', 'run_command', 'copy_ssh_config', 'rotate_key', 'send_file', 'receive_file' | |
| key_pfx | No | Prefix for new keys (rotate_key). | /root/.ssh/id_ |
| rmt_cfg | No | Remote config path (copy_ssh_config). | /root/.ssh/config |
| timeout | No | Command timeout in seconds. | |
| key_type | No | Key type: rsa or ed25519. | ed25519 |
| parallel | No | Run parallel. | |
| inventory | No | YAML inventory path (default: $XDG_CONFIG_HOME/agent-utilities/inventory.yaml). | /root/.config/agent-utilities/inventory.yml |
| max_threads | No | Max threads. | |
| lpath_prefix | No | Local dir prefix (receive_file). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||