nickjj / ansible-docker

Install / Configure Docker and Docker Compose using Ansible.
MIT License
750 stars 224 forks source link

Fix for ubuntu 22.04 apt key deprecated error #123

Closed devjume closed 1 year ago

devjume commented 2 years ago

Error to fix

Current version of role uses ansible.builtin.apt_key to add Dockers public GPG key to the APT keyring. This causes following error when running apt update on Ubuntu 22.04 (and Debian 11?): Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Read more about the why this is here in the summary

Fix

Read More / References: ansible.builtin.apt_key adds keys to a deprecated location #78063 apt_key deprecated in Debian/Ubuntu - how to fix in Ansible Used this commit as reference for the fix

nickjj commented 1 year ago

Hi,

Are you still open to merging this? I see there's a conflict but, if you are open to pursuing this PR still I'd like to make a number of suggestions before we can merge it.

If not, it's all good. I know this PR was hanging for almost a year.

devjume commented 1 year ago

Hi,

Unfortunately I don't have time to work on this now or anytime soon.

nickjj commented 1 year ago

It's ok.

If anyone is curious, this underlying issue was resolved in v2.3.0+.