hetzner.hcloud.load_balancer_status filter – Compute the status of a Load Balancer
Note
This filter plugin is part of the hetzner.hcloud collection (version 6.9.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install hetzner.hcloud.
To use it in a playbook, specify: hetzner.hcloud.load_balancer_status.
New in hetzner.hcloud 4.2.0
Synopsis
- Compute the status of a Load Balancer based on its targets.
Input
This describes the input of the filter, the value before | hetzner.hcloud.load_balancer_status.
Parameter | Comments |
|---|---|
Input dictionary / required | Load Balancer data. |
Examples
# Ensure a load balancer is healthy
{{ result.hcloud_load_balancer_info[0] | hetzner.hcloud.load_balancer_status == "healthy" }}
Return Value
Key | Description |
|---|---|
Return value string | The status of the Load Balancer targets, can be one of Returned: success |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/hetzner/hcloud/load_balancer_status_filter.html