# rpm\_key: Fedora 22: Failed to find required executable gpg

**URL:** <https://forum.ansible.com/t/rpm-key-fedora-22-failed-to-find-required-executable-gpg/18852>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [July 25, 2015, 8:45am UTC](https://forum.ansible.com/t/rpm-key-fedora-22-failed-to-find-required-executable-gpg/18852 "2015-07-25T08:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nusenu1](https://avatars.discourse-cdn.com/v4/letter/n/db5fbb/32.png) [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Post date:** [July 25, 2015, 8:45am UTC](https://forum.ansible.com/t/rpm-key-fedora-22-failed-to-find-required-executable-gpg/18852/1 "2015-07-25T08:45:51Z")

</div>

The rpm\_key module fails on Fedora 22 due to missing gpg binary.

Fedora 22 has no gpg executable but only gpg2.

Is it my responsibility to provide a link gpg -\> gpg2 or should the  
module cover this out of the box?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 28, 2015, 11:21pm UTC](https://forum.ansible.com/t/rpm-key-fedora-22-failed-to-find-required-executable-gpg/18852/2 "2015-07-28T23:21:17Z")

</div>

open a bug, first I'm not sure rpm\_key should be used on fedora 22 as  
it has switched to dnf as it's default package manager, 2nd the  
rpm\_key should fallback to the gpg2 name if gpg is not found.

---

<div class="post-metadata">

**Author:** ![Nusenu1](https://avatars.discourse-cdn.com/v4/letter/n/db5fbb/32.png) [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Post date:** [August 8, 2015, 2:00pm UTC](https://forum.ansible.com/t/rpm-key-fedora-22-failed-to-find-required-executable-gpg/18852/3 "2015-08-08T14:00:27Z")

</div>

> open a bug, first I'm not sure rpm\_key should be used on fedora 22  
> as it has switched to dnf as it's default package manager, 2nd the  
> rpm\_key should fallback to the gpg2 name if gpg is not found.

for those interested in Fedora 22 as well, these are the tickets:

[https://github.com/ansible/ansible-modules-core/issues/1796](https://github.com/ansible/ansible-modules-core/issues/1796)  
[https://github.com/ansible/ansible-modules-core/issues/1797](https://github.com/ansible/ansible-modules-core/issues/1797)
