molecule
molecule copied to clipboard
Getting 404 errors from github while trying to install roles
I discovered this new error that appeared:
ansible-galaxy role install -vvv --force ssbarnea.ansible_role_helloworld
ansible-galaxy [core 2.17.0]
config file = None
configured module search path = ['/Users/ssbarnea/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/ssbarnea/.asdf/installs/python/3.12.3/lib/python3.12/site-packages/ansible
ansible collection location = /Users/ssbarnea/.ansible/collections:/usr/share/ansible/collections
executable location = /Users/ssbarnea/.asdf/installs/python/3.12.3/bin/ansible-galaxy
python version = 3.12.3 (main, May 10 2024, 13:04:47) [Clang 15.0.0 (clang-1500.3.9.4)] (/Users/ssbarnea/.asdf/installs/python/3.12.3/bin/python3.12)
jinja version = 3.1.4
libyaml = True
No config file found; using defaults
Starting galaxy role install process
Processing role ssbarnea.ansible_role_helloworld
Opened /Users/ssbarnea/.ansible/galaxy_token
- downloading role 'ansible_role_helloworld', owned by ssbarnea
- downloading role from https://github.com/ssbarnea/ansible-role-helloworld/archive/main.tar.gz
[ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - ssbarnea.ansible_role_helloworld was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
Test with weget
$ wget https://github.com/ssbarnea/ansible-role-helloworld/archive/main.tar.gz
wget https://github.com/ssbarnea/ansible-role-helloworld/archive/main.tar.gz
--2024-06-27 08:21:58-- https://github.com/ssbarnea/ansible-role-helloworld/archive/main.tar.gz
Resolving github.com (github.com)... 20.26.156.215
Connecting to github.com (github.com)|20.26.156.215|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 302 Found
Server: GitHub.com
Date: Thu, 27 Jun 2024 07:21:59 GMT
Content-Type: text/html; charset=utf-8
Vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With
Location: https://codeload.github.com/ssbarnea/ansible-role-helloworld/tar.gz/refs/heads/main
Location: https://codeload.github.com/ssbarnea/ansible-role-helloworld/tar.gz/refs/heads/main [following]
--2024-06-27 08:21:59-- https://codeload.github.com/ssbarnea/ansible-role-helloworld/tar.gz/refs/heads/main
Resolving codeload.github.com (codeload.github.com)... 20.26.156.216
Connecting to codeload.github.com (codeload.github.com)|20.26.156.216|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
curl test
$ curl -s -L -o /dev/null -w "%{http_code}" https://github.com/ssbarnea/ansible-role-helloworld/archive/main.tar.gz
200%
To my surprise wget does not get the same result and I am wondering if GH started to ban galaxy user agent?