prometheus-community / ansible

Ansible Collection for Prometheus
https://prometheus-community.github.io/ansible/
Apache License 2.0
397 stars 134 forks source link

[WARNING]: Collection prometheus.prometheus does not support Ansible version 2.17.0 #386

Closed andygrunwald closed 2 months ago

andygrunwald commented 5 months ago

During an ansible run, the following warning will be thrown:

[WARNING]: Collection prometheus.prometheus does not support Ansible version 2.17.0

Right now, the runtime information limits it to 2.16.*:

https://github.com/prometheus-community/ansible/blob/f0030673774193349a3f8b9956d6361fad688cb7/meta/runtime.yml#L2

Do you have any special check/test-suite you run before you enable this collection to work with a new Ansible version? Otherwise, I can create a PR to support Ansible 2.17.*. In my setup, it works pretty well so far.

requirements.yml

collections:
  - name: prometheus.prometheus
    version: 0.16.3

Ansible Version

$ ansible --version
ansible [core 2.17.0]
  config file = None
  configured module search path = ['/Users/<user>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/10.0.1/libexec/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/<user>/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.12.3 (main, Apr  9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)] (/opt/homebrew/Cellar/ansible/10.0.1/libexec/bin/python)
  jinja version = 3.1.4
  libyaml = True
pablolanchez commented 3 months ago

I am having the same issue but with version 2.17.1 [WARNING]: Collection prometheus.prometheus does not support Ansible version 2.17.1

ansible --version

ansible [core 2.17.1] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible python version = 3.11.2 (main, Sep 12 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3.11) jinja version = 3.1.4 libyaml = True

pmiriyev commented 3 months ago

same here:

[WARNING]: Collection prometheus.prometheus does not support Ansible version 2.17.3

sdejong629 commented 2 months ago

We are also looking into upgrading our ansible to this version. Love to hear when the new ansible version will be available

andygrunwald commented 2 months ago

FYI: https://github.com/prometheus-community/ansible/pull/414