community.general.selective (8.5.0) — callback

only print certain tasks

Authors: Unknown (!UNKNOWN)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This callback only prints tasks that have been tagged with C(print_action) or that have failed. This allows operators to focus on the tasks that provide value only.

Tasks that are not printed are placed with a C(.).

If you increase verbosity all tasks are printed.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - ansible.builtin.debug: msg="This will not be printed"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - ansible.builtin.debug: msg="But this will"
    tags: [print_action]

Inputs

    
nocolor:
    default: false
    description: This setting allows suppressing colorizing output.
    env:
    - name: ANSIBLE_NOCOLOR
    - name: ANSIBLE_SELECTIVE_DONT_COLORIZE
    ini:
    - key: nocolor
      section: defaults
    type: boolean