dj-wasabi / ansible-telegraf

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

Fix: ensure apt-cache is updated before install #103

Closed asfaltboy closed 5 years ago

asfaltboy commented 5 years ago

Description of PR A fix to installing a newer version when using latest telegraf_agent_package_state: latest and an older version was already cached in apt.

Type of change Bugfix Pull Request

Fixes an issue Should fix the issue mentioned in this comment, and possibly the original issue as well, if we try tagging a wildcard version.

Dear reviewer, kindly ensure that this behavior does not need a toggle, otherwise we can add one. Also, we should try running with a version tag such as telegraf_agent_version: 1.10* to check if we're able to install the latest patch version if another one already exists.

dj-wasabi commented 5 years ago

Thanks! 👍