# GPG Signature Validation failed for mysql community release...

**URL:** <https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884>\
**Category:** Ansible Project\
**Created:** [September 24, 2020, 4:19am UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884 "2020-09-24T04:19:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 4:19am UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/1 "2020-09-24T04:19:14Z")

</div>

Hi Members,  
I am running an ansible Playbook which installs the below community version of MySql repo:

mysql-community-release-e17-5.noarch

But the problem is I am getting the Below error Message:  
Fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Failed to validate GPG signature for mysql-community-release-e17-5.noarch”}

How to fix this out?

I am also getting one warning message all the time I tried running the Playbook:  
The warning goes like this…  
/usr/lib/python2.7/site-packages/ansible/parsing/vault/ **init**.py:44: CryptographyDepreciationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.  
from cryptography.exceptions import InvalidSignature

Just curious to Know… Is that any relation among these 2 errors?

Anyway, I want to fix both the issure as early as possible. Thanks for reading…

With Hope,  
Prabhakaran

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [September 24, 2020, 4:51am UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/2 "2020-09-24T04:51:49Z")

</div>

> Hi Members,  
> I am running an ansible Playbook which installs the below community version of MySql repo:
> 
> mysql-community-release-e17-5.noarch
> 
> But the problem is I am getting the Below error Message:  
> Fatal: [localhost]: FAILED! =\> {"changed": false, "msg": "Failed to validate GPG signature for  
> mysql-community-release-e17-5.noarch"}
> 
> How to fix this out?

How does the corresponding task looks like and what is your Linux distribution?

> I am also getting one warning message all the time I tried running the Playbook:  
> The warning goes like this...  
> /usr/lib/python2.7/site-packages/ansible/parsing/vault/\_\_init\_\_.py:44: CryptographyDepreciationWarning: Python 2 is no  
> longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a  
> future release.  
> from cryptography.exceptions import InvalidSignature
> 
> Just curious to Know... Is that any relation among these 2 errors?

Use Python 3 :-).

Set the following variable (e.g. in your inventory)

ansible\_python\_interpreter: /usr/bin/python3

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 6:12am UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/3 "2020-09-24T06:12:37Z")

</div>

How does the corresponding task looks like and what is your Linux distribution?

Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) - Command Line Only

I have attached the Task (starfish.yml)

Use Python 3 🙂

Sorry to say… Actually I am reading a book to learn Asterisk. So I must have to follow his footpaths only…

Signature.asc

You have attached the Signature.asc file. So is this signature file that mysql-repo is asking for?

Please consider and Kindly reply.

With Hope,  
Prabhakaran

> **(attachments)**
>
> [Starfish.yml](https://forum.ansible.com/uploads/short-url/hVjFzH3clLVENhtcdRbfyNj8LPy.yml) (5.17 KB)

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [September 24, 2020, 6:40am UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/4 "2020-09-24T06:40:23Z")

</div>

> How does the corresponding task looks like and what is your Linux distribution?
> 
> Hi Sir, Thanks for your reply. I am using CentOS 7 (Minimal installation) - Command Line Only
> 
> I have attached the Task (starfish.yml)
> 
> Use Python 3 🙂

CentOS 7 is too old for Python 3, use CentOS 8 🙂

Though that's not secure, can you try to add

disable\_gpg\_check: true

to the failing task and see if that helps.

> Sorry to say... Actually I am reading a book to learn Asterisk. So I must have to follow his footpaths only...
> 
> Signature.asc  
> You have attached the Signature.asc file. So is this signature file that mysql-repo is asking for?

No, that's my personal GPG signature.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 12:41pm UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/5 "2020-09-24T12:41:51Z")

</div>

Hi Mr.Racke,  
My Sincere thanks to you for answering most of my Questions. Would you Mind if I ask you some more Questions too… Please reply…  
With Hope,  
Prabhakaran

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 2:03pm UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/6 "2020-09-24T14:03:49Z")

</div>

Hi Racke,

Use Python 3 :-).  
I have installed Python 3.8.5

Set the following variable (e.g. in your inventory)  
Sorry. I don’t know How to do it… Need your Help on this…

ansible\_python\_interpreter: /usr/bin/python3

Where to enter the above codeline. Please explain.

With Hope,  
Prabhakaran

---

<div class="post-metadata">

**Author:** ![Prabhakaran\_Karuppai](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Prabhakaran\_Karuppai](https://forum.ansible.com/u/Prabhakaran_Karuppai)\
**Post date:** [September 24, 2020, 11:34pm UTC](https://forum.ansible.com/t/gpg-signature-validation-failed-for-mysql-community-release/33884/7 "2020-09-24T23:34:14Z")

</div>

Hi Members,  
I sincerely requesting you all to kindly have a look on my recent Question and answer if possible. Please doesn’t take it otherwise. I am desperate, that’s why. Hope you understand…

With Hope,  
Prabhakaran
