Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install prometheus.prometheus via requirements.yml #505

Open
shade-belisar opened this issue Jan 6, 2025 · 1 comment
Open

Cannot install prometheus.prometheus via requirements.yml #505

shade-belisar opened this issue Jan 6, 2025 · 1 comment

Comments

@shade-belisar
Copy link

I can install the latest prometheus.prometheus collection by running the following command:

ansible-galaxy collection install prometheus.prometheus:0.23.0

However, when I try to achieve the same thing with an entry in my requirements.yml

collections:
  - name: prometheus.prometheus
    version: 0.23.0

I get the following error:

ansible-galaxy install -r meta/requirements.yml 
Starting galaxy role install process
- downloading role 'prometheus', owned by prometheus
[WARNING]: - prometheus.prometheus was NOT installed successfully: - sorry, prometheus.prometheus was not found on https://galaxy.ansible.com/api/.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

Am I misunderstanding something, or is there a bug?

@gardar
Copy link
Member

gardar commented Jan 6, 2025

Looks like it's attempting to install the collection as a role, does ansible-galaxy collection install -r meta/requirements.yml work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants