apt_key
Collection: builtin
Full Name: parallax.builtin.apt_key
Aliases: ansible.builtin.apt_key, apt_key
Synopsis
Add or remove trusted apt signing keys
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | The identifier of the key | ||
| data | string | The keyfile contents to add to the keyring | ||
| file | string | The path to a keyfile on the remote server to add to the keyring | ||
| keyring | string | The full path to specific keyring file in /etc/apt/trusted.gpg.d/ | ||
| url | string | The URL to retrieve key from | ||
| keyserver | string | The keyserver to retrieve key from | ||
| state | string | present | absent or present: ensures that the key is added or revoked from the keyring. Choices: absent, present | |
| validate_certs | bool | true | If false, SSL certificates will not be validated |
Example
- name: Trust the NodeSource signing key
apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
state: present