kembitnl / kembitnl.pmp / 1.1.6 / module / getcert Retrieve certificate and password Authors: KEMBIT Automation team (ansible@kembit.nl)kembitnl.pmp.getcert (1.1.6) — module
Install with ansible-galaxy collection install kembitnl.pmp:==1.1.6
collections: - name: kembitnl.pmp version: 1.1.6
Retrieves a certificate from a PMP keystore and saves it to a local file. If a password is registered in PMP, it is also retrieved.
The PMP URL and authtoken must be set in environment variables PMP_URL and PMP_AUTHTOKEN.
# Retrieve a certificate - name: Get certificate for webserver kembitnl.pmp.certificate: resourcename: 'Certificates' organization: CUSTOMER account: www.example.com
orgName: aliases: - organization description: The name of the organization. If omitted, the default organization will be used. required: false type: str accountname: description: The name of the certificate required: true type: str resourcename: description: The name of the resource in Password Manager Pro where the certificate can be found. required: true type: str
certificate: description: 'Returns an object with the filename, randomly generated in /tmp, which contains the certificate, and the password. B(WARNING): The password is returned as plain text, so always put a no_log: true statement in the block when calling this module!' returned: on success sample: certfile: /tmp/abcdefghijklmnopqrst password: TheverysecretPasswordoftheCert! type: dict