Skip to content

Ansible role for adding apt repository signing keys per Debian's recommendations.

License

Notifications You must be signed in to change notification settings

Jackenmen/ansible-apt-signing-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apt-signing-key

This role allows downloading and adding GPG signing keys for third-party apt repositories per Debian's recommendations: https://wiki.debian.org/DebianRepository/UseThirdParty

Requirements

  • Debian-based system
  • gpg
  • wget

Role Variables

The GPG key is stored under {{ key_path }}/{{ key_name }}-archive-keyring.gpg location.

  • url (required) - GPG key URL.
  • key_name (required) - GPG key target name.
  • key_path - Location of archive keyrings. Defaults to the recommended /usr/share/keyrings.
  • key_id - GPG key ID/fingerprint. If provided, the role will redownload a key if it differs from the locally available one. Additionally, it will also be verified after the key is downloaded.
  • dearmor - Should the key from the URL be dearmored before saving. Defaults to false.

Dependencies

None.

Example Playbook

- name: Provision machine X
  hosts: localhost
  tasks:
    - name: Adding Nodesource signing key
      include_role:
        name: jackenmen.apt_signing_key
      vars:
        url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
        key_name: nodesource
        key_id: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280
        dearmor: true

License

Apache License 2.0

About

Ansible role for adding apt repository signing keys per Debian's recommendations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published