proxmox_node
!proxmox_node
Category: proxmox
Passive/read-only query of Proxmox node status (uptime, load, memory, CPU), optionally with cluster quorum and VM/LXC lists. Saves a JSON blob into a host variable.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
api_host | string | yes | Proxmox API host. |
api_token_id | string | yes | Proxmox API token ID. |
api_token_secret | string | yes | Proxmox API token secret. |
node | string | yes | Node name to query. |
save_to | string | no | Variable name to store the resulting JSON info string into. |
include_cluster | bool | no | Also fetch /cluster/status (adds cluster list + quorate bool). |
include_vms | bool | no | Also list QEMU VMs on the node (adds vms + vm_count). |
include_lxc | bool | no | Also list LXCs on the node (adds lxc + lxc_count). |
Examples
- !proxmox_node
api_host: '{{ proxmox_host }}'
api_token_id: '{{ proxmox_token_id }}'
api_token_secret: '{{ proxmox_token_secret }}'
node: bee
save_to: node_info
include_cluster: true
include_vms: true