ramondevprivate.common.fleet_probe_targets filter – Public addresses of fleet snapshots to ping from the probe host
Note
This filter plugin is part of the ramondevprivate.common collection (version 1.0.0).
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 ramondevprivate.common.
To use it in a playbook, specify: ramondevprivate.common.fleet_probe_targets.
New in ramondevprivate.common 1.0.0
Synopsis
Returns one entry per public (non-private) address of each snapshot, with host, address and family.
Public means as classified by
fleet_snapshot; an address that doesn’t parse counts as private and is never returned.
Input
This describes the input of the filter, the value before | ramondevprivate.common.fleet_probe_targets.
Parameter |
Comments |
|---|---|
Snapshots collected in this run. |
Examples
- name: Ping public addresses
ansible.builtin.command:
argv: [ping, "{{ '-6' if item.family == 'ipv6' else '-4' }}", -c, "1", -W, "2", "{{ item.address }}"]
loop: "{{ snapshots | ramondevprivate.common.fleet_probe_targets }}"
Return Value
Key |
Description |
|---|---|
Entries with Returned: success |