Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on Ubuntu 20.04 #121

Closed
ptheofan opened this issue May 8, 2020 · 2 comments · Fixed by #124
Closed

Broken on Ubuntu 20.04 #121

ptheofan opened this issue May 8, 2020 · 2 comments · Fixed by #124

Comments

@ptheofan
Copy link

ptheofan commented May 8, 2020

Describe the bug
FAILED - RETRYING: Debian | Install Telegraf package (1 retries left).

fatal: [sedge-01]: FAILED! => {"attempts": 3, "cache_update_time": 1588931069, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'telegraf=1.10.0-1'' failed: E: Version '1.10.0-1' for 'telegraf' was not found\n", "rc": 100, "stderr": "E: Version '1.10.0-1' for 'telegraf' was not found\n", "stderr_lines": ["E: Version '1.10.0-1' for 'telegraf' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}

Installation method/version

Ansible Galaxy / latest

Ansible Version

ansible 2.9.7

Targetted hosts
Concerns the following OS(es):

  • Ubuntu 20.04
@acamilleri
Copy link

Same problem here
I think it's a mistake on the conditional check here : https://github.com/dj-wasabi/ansible-telegraf/blob/0.12.0/tasks/Debian.yml#L7

This is fixed on master by this commit: b48ff6b
The commit was not backport to the latest release (0.12.0), the version of this role must be must be pin as b48ff6b27335a1011827b945cc29bcb686608cad in your requirements file.

@dwerder
Copy link
Contributor

dwerder commented Jun 2, 2020

There was a merge who introduced a conditianal error: #108

This results in errors like:
FAILED! => {"attempts": 3, "changed": false, "msg": "version number inconsistent with state=latest: telegraf=1.10.0-1"}

And its not a Ubuntu problem. At the moment its broken for all Debian-like distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants