torque.collections.export_torque_outputs (1.0.2) — module

Exports outputs to a .json file

| "added in version" 1.0.0 of torque.collections"

Authors: Torque

Install collection

Install with ansible-galaxy collection install torque.collections:==1.0.2


Add to requirements.yml

  collections:
    - name: torque.collections
      version: 1.0.2

Description

This module allows collecting the playbook outputs and export them to a .json file, that Torque will use as the grain outputs.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Export outputs
  torque.collections.export_torque_outputs:
    outputs: 
      output1: "{{ result }}"

Inputs

    
outputs:
    required: true
    type: dict