community.crypto.gpg_fingerprint lookup – Retrieve a GPG fingerprint from a GPG public or private key file
Note
This lookup plugin is part of the community.crypto collection (version 2.15.0).
To install it, use: ansible-galaxy collection install community.crypto.
To use it in a playbook, specify: community.crypto.gpg_fingerprint.
New in community.crypto 2.15.0
Synopsis
Takes the input lists and returns a list with elements that are lists, dictionaries, or template expressions which evaluate to lists or dicts, composed of the elements of the input evaluated lists and dictionaries.
Terms
Parameter |
Comments |
|---|---|
A path to a GPG public or private key. |
Examples
- name: Show fingerprint of GPG public key
ansible.builtin.debug:
msg: "{{ lookup('community.crypto.gpg_fingerprint', '/path/to/public_key.gpg') }}"
Return Value
Key |
Description |
|---|---|
The fingerprint of the provided public or private GPG key. The list as entry for every path provided. Returned: success |
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication