apt_key
Collection: builtin
Full Name: parallax.builtin.apt_key
Aliases: ansible.builtin.apt_key, apt_key
Synopsis
Manage apt key
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: Example apt_key task
apt_key:
id: <your_id>
data: <your_data>