Closed mehyedes closed 5 years ago
HI @midihenry
I created a PR that should fix this issue. Is there a way that you can test it?
If documentation is right, only the use_proxy
should be set to true
. But if this isn't working, then I'll add the environment argument as well.
Thanks!
Hi @dj-wasabi ,
I can confirm that adding use_proxy
is not enough. The environment
argument must be added as well.
That's how I was able to make it work.
I am guessing this could be a bug in Ansible itself?
Hi @midihenry
Thank you for your answer. I added another commit to the PR. Do you see any chance to verify it on your setup? Thanks! 👍
Describe the bug When using
telegraf_agent_package_method=online
, the proxy configuration on the remote hosts is not taken into consideration, which causes the package download to fail with a "Connection refused" error. PS: Downloading the package manually on the host usingwget
works fine.Not sure if that's not supported by the role, or if I am doing something wrong.
Installation method/version
Ansible Version
Targetted hosts Concerns the following OS(es):
Expected behavior When proxy configuration is set on the remote hosts, the module should use it to download the telegraf package.
Additional context To make it work, I had to make the following change to the task:
And set the proxy in my vars files: