You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
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 use uri 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.
[19:01:16] cloudalchemy.node-exporter : Get checksum list from github | host | FAILED | 1742ms
{
- msg: An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Received HTTP error for https://github.com/prometheus/node_exporter/releases/download/v0.18.1/sha256sums.txt : HTTP Error 400: Bad Request
Anything else we need to know?:
Work around at the moment is to patch the task with
- name: Download checksum list from github
uri:
url: "{{ 'https://github.com/prometheus/node_exporter/releases/download/v' + node_exporter_version + '/sha256sums.txt' }}"
method: GET
return_content: true
status_code: 200
body_format: json
register: _raw_checksum
until: _raw_checksum.status == 200
retries: 5
run_once: true
- name: "Get checksum list from github results"
set_fact:
_checksums: "{{ _raw_checksum.content.split('\n') }}"
run_once: true
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: