Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zeitounator/fe7bca472f1cb649d91b6bc3794626a9 to your computer and use it in GitHub Desktop.
Save zeitounator/fe7bca472f1cb649d91b6bc3794626a9 to your computer and use it in GitHub Desktop.
---
- hosts: localhost
connection: local
name: IMPORTING SECURITY KEYS
vars:
my_key_list:
- https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020
- https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020
tasks:
- name: Importing all relevent keys
ansible.builtin.rpm_key:
state: present
key: "{{ item }}"
loop: "{{ my_key_list }}"
@telometto
Copy link

telometto commented Jun 13, 2021

Thanks a lot! It worked flawlessly 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment