mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
[rpm_key] Fix to import first key on the system (#31514)
* [rpm_key] Fix to import first key on the system Fixes: #31483 * [rpm_key] removed unsafe_shell and "throwaway" underscore * [rpm_key] adding test to add the first key on system
This commit is contained in:
parent
ada6159ece
commit
5ccc1072ea
2 changed files with 14 additions and 2 deletions
|
@ -101,3 +101,11 @@
|
|||
- name: confirm that signature check succeeded
|
||||
assert:
|
||||
that: "'rsa sha1 (md5) pgp md5 OK' in sl_check.stdout"
|
||||
|
||||
- name: remove all keys from key ring
|
||||
shell: "rpm -q gpg-pubkey | xargs rpm -e"
|
||||
|
||||
- name: add very first key on system
|
||||
rpm_key:
|
||||
state: present
|
||||
key: https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue