Issue with apt update cache adding repo
shelmus opened this issue · 2 comments
Using this role on Debian 10 with ansible-core 2.11.4 from pip I hit an issue during the setup of the repos. apt cache wasn't being updated because the gpg key didn't match what was downloaded in the previous step.
TASK [geerlingguy.kubernetes : Add Kubernetes repository.] *************************************************************************
FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:GPG error: https://packages.cl
oud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not availabl
e: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB, E:The repository 'http://apt.kubernetes.io kubernetes-xenial InRelease' is
not signed."}
After adding the following it worked fine.
kubernetes_apt_repository: "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"```
Found this info from:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.