stephrobert.scaleway.changes_summary filter – One line per thing that moved, and nothing composite

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.changes_summary.

Synopsis

  • Aggregates what the fleet diff and the audit comparison found into counts that are explainable line by line. No composite score: a composite number cannot be traced back to what moved it.

  • Counts what was not measured apart from what did not move. A zone nobody could read is not a calm fleet, and presenting it as one is the green over zero files examined.

Aliases: summary_verdict, worst_level

Input

This describes the input of the filter, the value before | stephrobert.scaleway.changes_summary.

Parameter

Comments

Input

dictionary / required

The audit comparison, as audit_changes returned it.

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.changes_summary(key1=value1, key2=value2, ...)

Parameter

Comments

diff

dictionary

The infrastructure comparison, as fleet_diff returned it. none says no earlier snapshot was handed back, which is not the same as nothing having moved.

expired_exceptions

list / elements=string

The policy exceptions whose expiry has passed.

previous_findings

list / elements=string

The findings of the previous run, to say what each severity did rather than only where it stands.

unmeasured_scopes

list / elements=string

The scopes this run could not read.

Examples

- name: What moved, in counts a person reads
  ansible.builtin.set_fact:
    bilan: >-
      {{ changements | stephrobert.scaleway.changes_summary(
           diff=comparaison,
           expired_exceptions=perimees,
           unmeasured_scopes=muettes,
           previous_findings=constats_gardes) }}

Return Value

Key

Description

Return value

dictionary

One count per thing that moved, and what each severity did.

Returned: success