geerlingguy / mac-dev-playbook

Mac setup and configuration via Ansible.
Other
5.95k stars 1.76k forks source link

[ERROR]: failed to download the file: HTTP Error 404: Not Found (when file does exist) #159

Closed pessimo closed 2 years ago

pessimo commented 2 years ago

after execute

ansible-galaxy install -r requirements.yml

the command fail with error

Starting galaxy role install process
- downloading role 'osx-command-line-tools', owned by elliotweiser
- downloading role from https://github.com/elliotweiser/ansible-osx-command-line-tools/archive/master.tar.gz
 [ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - elliotweiser.osx-command-line-tools was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

while I can actually get file with the browser via https://github.com/elliotweiser/ansible-osx-command-line-tools/archive/master.tar.gz

pessimo commented 2 years ago

I end up changing requirements.yml to

roles:
  - name: elliotweiser.osx-command-line-tools
    src: https://github.com/elliotweiser/ansible-osx-command-line-tools
  - name: geerlingguy.dotfiles
    src: https://github.com/geerlingguy/ansible-role-dot

and the download proceeds successfully