Documentation tweaks for apt repo key management. Fixes #78063 (#80872)

pull/80892/head
Matt Martz 3 years ago committed by GitHub
parent 9f4dfff69b
commit 0775e991d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ attributes:
platform: platform:
platforms: debian platforms: debian
notes: notes:
- The apt-key command has been deprecated and suggests to 'manage keyring files in trusted.gpg.d instead'. See the Debian wiki for details. - The apt-key command used by this module has been deprecated. See the L(Debian wiki,https://wiki.debian.org/DebianRepository/UseThirdParty) for details.
This module is kept for backwards compatibility for systems that still use apt-key as the main way to manage apt repository keys. This module is kept for backwards compatibility for systems that still use apt-key as the main way to manage apt repository keys.
- As a sanity check, downloaded key id must match the one specified. - As a sanity check, downloaded key id must match the one specified.
- "Use full fingerprint (40 characters) key ids to avoid key collisions. - "Use full fingerprint (40 characters) key ids to avoid key collisions.
@ -36,6 +36,8 @@ notes:
- Adding a new key requires an apt cache update (e.g. using the M(ansible.builtin.apt) module's update_cache option). - Adding a new key requires an apt cache update (e.g. using the M(ansible.builtin.apt) module's update_cache option).
requirements: requirements:
- gpg - gpg
seealso:
- module: ansible.builtin.deb822_repository
options: options:
id: id:
description: description:
@ -81,12 +83,12 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- name: One way to avoid apt_key once it is removed from your distro - name: One way to avoid apt_key once it is removed from your distro, armored keys should use .asc extension, binary should use .gpg
block: block:
- name: somerepo |no apt key - name: somerepo | no apt key
ansible.builtin.get_url: ansible.builtin.get_url:
url: https://download.example.com/linux/ubuntu/gpg url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x36a1d7869245c8950f966e92d8576a8ba88d21e9
dest: /etc/apt/keyrings/somerepo.asc dest: /etc/apt/keyrings/myrepo.asc
- name: somerepo | apt source - name: somerepo | apt source
ansible.builtin.apt_repository: ansible.builtin.apt_repository:

@ -26,6 +26,8 @@ attributes:
platforms: debian platforms: debian
notes: notes:
- This module supports Debian Squeeze (version 6) as well as its successors and derivatives. - This module supports Debian Squeeze (version 6) as well as its successors and derivatives.
seealso:
- module: ansible.builtin.deb822_repository
options: options:
repo: repo:
description: description:

Loading…
Cancel
Save