Updating CentOS Linux release 7.9.2009 (Core) using yum module

Hi,

I am facing the below issue while updating CentOS Linux release 7.9.2009 (Core)

➜ ~ cat /Users/kaushal/hosts
[yum]
192.168.0.112 ansible_ssh_user=root
➜ ~ cat pkg_update.yml

Did you spot this in the error message and think about why it might be happening:

"“warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-common-8.0.30-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY\n\n\nGPG key retrieval failed: [Errno 14] curl#37 - **“Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022**"\n””

https://www.google.com/search?q=ansible+yum+GPG+key+retrieval+failed

Thanks a lot. I did rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 and copied it to /etc/pki/rpm-gpg/. It worked like a charm.

Best Regards,

Kaushal