ziouf / ziouf.tpm / 2021.7.27-1070151628 / lookup / project Retrieve project data | "added in version" 2.10.4 of ziouf.tpm" Authors: Cyril Marin (@ziouf)ziouf.tpm.project (2021.7.27-1070151628) — lookup
Install with ansible-galaxy collection install ziouf.tpm:==2021.7.27-1070151628
collections: - name: ziouf.tpm version: 2021.7.27-1070151628
Retrieve project data
# First result - debug: msg="{{ lookup('ziouf.tpm.project', 'myproject') }}"
# returns : dict - debug: msg="{{ lookup('ziouf.tpm.project', 'myproject', field='name') }}"
# returns : str # All matching results - debug: msg="{{ lookup('ziouf.tpm.project', 'myproject', all=True) }}"
# returns : [dict, ...] - debug: msg="{{ lookup('ziouf.tpm.project', 'myproject', all=True, field='name') }}"
field: default: id description: Field to be return required: false _terms: description: - List of TPM queries to find desired project informations required: true hostname: description: 'TeamPasswordManager api hostname Fallback to TPM_HOST environment variable if not defined Expected format : hostname.domain:port/app-path-if-needed Examples: teampasswordmanager.com:443 or my-corporate-domainname.com/tpm-path ' required: false password: description: Team Password Manager api password for Basic authentication required: false username: description: Team Password Manager api login for Basic authentication required: false wantlist: default: false description: Return all results required: false type: bool public_key: description: Team Password Manager api public key for HMAC authentication required: false private_key: description: Team Password Manager api private key for HMAC authentication required: false
_list: description: - TeamPasswordManager data matching spcified query elements: json type: list