Failed to validate GPG signature for mysql-community-release-el7-5.noarch - reg

  • name: Install the MySQL repo.

dnf:
name: http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
state: present

Error:

TASK [Install the MySQL repo.] *****************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Failed to validate GPG signature for mysql-community-release-el7-5.noarch”}

PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Hope someone will reply…Work at stake :frowning:

With Hope,
Prabhakaran

This seems to be not an ansible problem but rather something with the repository setup you have.

try something like this before adding your package

  • name: Import key for mysql-repo
    rpm_key:

state: present
key: http://repo.mysql.com/RPM-GPG-KEY-mysql

Best regards
Sven Probst

Thanks Sven. That works for me…