stephrobert.scaleway.fleet_diff filter – What changed between two observed snapshots
Note
This filter plugin is part of the stephrobert.scaleway collection (version 0.8.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 stephrobert.scaleway.
To use it in a playbook, specify: stephrobert.scaleway.fleet_diff.
Synopsis
Compares two snapshots and reports what appeared, what went away, what changed and how many resources did not move.
Only compares a zone both snapshots measured. A zone that did not answer, and a zone that was simply not read this time, would both make everything it holds look removed.
Never triggers a change on the last-change timestamp alone. It is a witness rather than a property, and a diff line showing only a timestamp gives nobody an action.
Aliases: diff_verdict
Input
This describes the input of the filter, the value before | stephrobert.scaleway.fleet_diff.
Parameter |
Comments |
|---|---|
The earlier snapshot. |
Keyword parameters
This describes keyword parameters of the filter. These are the values key1=value1, key2=value2 and so on in the following
example: input | stephrobert.scaleway.fleet_diff(key1=value1, key2=value2, ...)
Parameter |
Comments |
|---|---|
The later snapshot, the one to compare against. |
Examples
- name: What moved since yesterday
ansible.builtin.set_fact:
changements: >-
{{ hier | stephrobert.scaleway.fleet_diff(after=aujourdhui) }}
Return Value
Key |
Description |
|---|---|
What changed, what did not, and what could not be compared. Returned: success |