Closed sysbot closed 4 years ago
I cannot reproduce it. Could you check if adding retries
to set_fact
task solves it?
Thanks for verifying. I found the issue. This is related to urllib automatically pick up netrc in [this][1]. When ~/.netrc
exist, running NETRC= ansible-playbook ...
will fix the issue.
What happened? When running the ansible-node-exporter, upon running this task:
I get the following issue.
[19:01:16] cloudalchemy.node-exporter : Get checksum list from github | host | FAILED | 1742ms {
It seemed that the results return is a 302, which the
url
did not follow. The option to follow seemed to be added in Ansible Devel. Switching to useuri
worked.Did you expect to see some different?
Expect this to succeed.
How to reproduce it (as minimally and precisely as possible): Attempt to run/use the role.
Environment Ubuntu 18.04
Anything else we need to know?: Work around at the moment is to patch the task with