community.general.manifold (8.5.0) — lookup

get credentials from Manifold.co

Authors: Kyrylo Galanov (!UNKNOWN) <galanoff@gmail.com>

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

Retrieves resources' credentials from Manifold.co

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: all available resources
      ansible.builtin.debug:
        msg: "{{ lookup('community.general.manifold', api_token='SecretToken') }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: all available resources for a specific project in specific team
      ansible.builtin.debug:
        msg: "{{ lookup('community.general.manifold', api_token='SecretToken', project='poject-1', team='team-2') }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: two specific resources
      ansible.builtin.debug:
        msg: "{{ lookup('community.general.manifold', 'resource-1', 'resource-2') }}"

Inputs

    
team:
    description:
    - The team label you want to get the resource for.
    required: false
    type: string

_terms:
    description:
    - Optional list of resource labels to lookup on Manifold.co. If no resources are specified,
      all matched resources will be returned.
    elements: string
    required: false
    type: list

project:
    description:
    - The project label you want to get the resource for.
    required: false
    type: string

api_token:
    description:
    - manifold API token
    env:
    - name: MANIFOLD_API_TOKEN
    required: true
    type: string

Outputs

_raw:
  description:
  - dictionary of credentials ready to be consumed as environment variables. If multiple
    resources define the same environment variable(s), the last one returned by the
    Manifold API will take precedence.
  type: dict