ansible icon indicating copy to clipboard operation
ansible copied to clipboard

Cannot install prometheus.prometheus via requirements.yml

Open shade-belisar opened this issue 1 year ago • 1 comments

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?

shade-belisar avatar Jan 06 '25 07:01 shade-belisar

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

gardar avatar Jan 06 '25 16:01 gardar