dj-wasabi / ansible-telegraf

Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
MIT License
134 stars 116 forks source link

Replace apt_key with get_url #170

Closed danclough closed 1 year ago

danclough commented 1 year ago

This PR resolves an issue encountered on Debian 11/Ubuntu 22.04 hosts where the apt-key command returns a warning due to deprecation by the OS maintainers, and fails the task as a result.

The most common workaround seems to be placing the key directly into the trusted.gpg.d directory and referencing the key path as a signed-by parameter in the repo file. I made this change on my fork and successfully ran the playbook against my Debian 11 hosts.

Description of PR Updating the Debian apt key install process to use the recommended method of placing the key in trusted.gpg.d instead of using the deprecated apt-key command.

Type of change Bugfix Pull Request

Fixes an issue https://github.com/dj-wasabi/ansible-telegraf/issues/169

danclough commented 1 year ago

Pushing a new commit to this to resolve the test failure on Ubuntu 16.04.

dj-wasabi commented 1 year ago

Thank you!