community.general.manifold lookup – get credentials from Manifold.co
Note
This lookup plugin is part of the community.general collection (version 9.4.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 community.general
.
To use it in a playbook, specify: community.general.manifold
.
Synopsis
Retrieves resources’ credentials from Manifold.co
Terms
Parameter |
Comments |
---|---|
Optional list of resource labels to lookup on Manifold.co. If no resources are specified, all matched resources will be returned. |
Keyword parameters
This describes keyword parameters of the lookup. These are the values key1=value1
, key2=value2
and so on in the following
examples: lookup('community.general.manifold', key1=value1, key2=value2, ...)
and query('community.general.manifold', key1=value1, key2=value2, ...)
Parameter |
Comments |
---|---|
The project label you want to get the resource for. |
|
The team label you want to get the resource for. |
Notes
Note
When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters:
lookup('community.general.manifold', term1, term2, key1=value1, key2=value2)
andquery('community.general.manifold', term1, term2, key1=value1, key2=value2)
Examples
- name: all available resources
ansible.builtin.debug:
msg: "{{ lookup('community.general.manifold', api_token='SecretToken') }}"
- 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') }}"
- name: two specific resources
ansible.builtin.debug:
msg: "{{ lookup('community.general.manifold', 'resource-1', 'resource-2') }}"
Return Value
Key |
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. Returned: success |