Note
This filter plugin is part of the sensu.sensu_go collection (version 1.14.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 sensu.sensu_go.
To use it in a playbook, specify: sensu.sensu_go.backends.
Note
The sensu.sensu_go collection will be removed from Ansible 12 due to violations of the Ansible inclusion requirements. The collection has unresolved sanity test failures. Once removed, you can still install the collection manually with ansible-galaxy collection install sensu.sensu_go. See the discussion thread for more information.
New in sensu.sensu_go 1.13.2
This describes the input of the filter, the value before | sensu.sensu_go.backends.
Parameter | Comments |
|---|---|
Input dictionary / required | Inventory host variables (hostvars). |
This describes keyword parameters of the filter. These are the values key1=value1, key2=value2 and so on in the following example: input | sensu.sensu_go.backends(key1=value1, key2=value2, ...)
Parameter | Comments |
|---|---|
groups list / elements=string / required | List of ansible inventory groups. |
- name: Filter backends from ansible inventory and format a list of websocket connection addresses
ansible.builtin.debug:
msg: "{{ hostvars | sensu.sensu_go.backends(groups) }}"
Key | Description |
|---|---|
Return value list / elements=string | List of websocket connection addresses. Returned: success |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/sensu/sensu_go/backends_filter.html