ansible.apt_key(3) - Linux man page
Name
apt_key - Add or remove an apt key
Description
Add or remove an apt key, optionally downloading it
Options
- id
identifier of key (default: none)
state
used to specify if key is being added or revoked Choices: absent,present. (default: present)
url
url to retrieve key from. (default: none)."
Notes
doesn't download the key unless it really needs it
as a sanity check, downloaded key id must match the one specified
best practice is to specify the key id and the url
Examples
Add an Apt signing key, uses whichever key is at the URL
apt_key: url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=presentAdd an Apt signing key, will not download if present
apt_key: id=473041FA url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=presentRemove an Apt signing key, uses whichever key is at the URL
apt_key: url=https://ftp-master.debian.org/keys/archive-key-6.0.asc state=absentRemove a Apt specific signing key
apt_key: id=473041FA state=absent
Author
Jayson Vantuyl & others
See Also
ansible(1), http://ansible.github.com/modules.html#apt-key