rpm_key

Collection: builtin

Full Name: parallax.builtin.rpm_key

Aliases: ansible.builtin.rpm_key, rpm_key

Synopsis

Add or remove an RPM signing key from the trusted set

Parameters

NameTypeRequiredDefaultDescription
keystringyesURL or file path to the GPG key to import or remove
statestringpresentWhether the key should be present or absent Choices: present, absent
fingerprintstringThe fingerprint of the GPG key; used to verify the key or identify a key for removal
validate_certsbooltrueWhether to validate SSL certificates when downloading a key from a URL

Example

- name: Trust the EPEL signing key
  rpm_key:
    key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9
    state: present