sensu / sensu.sensu_go / 1.14.0 / filter / backends Format websocket connection for backends hosts from inventory. | "added in version" 1.13.2 of sensu.sensu_go" Authors: Tadej Borovsak (@tadeboro)sensu.sensu_go.backends (1.14.0) — filter
Install with ansible-galaxy collection install sensu.sensu_go:==1.14.0
collections: - name: sensu.sensu_go version: 1.14.0
Socket connection format function.
Filter backends hosts from ansible inventory groups.
The return value is a list of websocket connection addresses.
- name: Filter backends from ansible inventory and format a list of websocket connection addresses ansible.builtin.debug: msg: "{{ hostvars | sensu.sensu_go.backends(groups) }}"
_input: description: Inventory host variables (hostvars). required: true type: dict groups: description: List of ansible inventory groups. required: true type: list
_value: description: List of websocket connection addresses. type: list