matrix-docker-ansible-deploy icon indicating copy to clipboard operation
matrix-docker-ansible-deploy copied to clipboard

Grafana main.yml possibly with variable-naming error

Open UehgxEQbFiw4Tlw8 opened this issue 1 month ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

Hello,

trying to update Grafana to last version v12.2.0 (Release Date: September 24, 2025) tagging the version in my vars.yml I've received the message:

TASK [galaxy/grafana : Ensure Grafana container image is pulled via community.docker.docker_image] *********************************************** FAILED - RETRYING: [matrix.example.com]: Ensure Grafana container image is pulled via community.docker.docker_image (10 retries left). FAILED - RETRYING: [matrix.example.com]: Ensure Grafana container image is pulled via community.docker.docker_image (9 retries left). [...]

Verifying the existence at https://grafana.com/grafana/download/12.2.0?edition=oss&pg=blog&platform=docker&plcmt=body-txt made me wonder about the correctness of this line in Grafana's ansible role main.yml:

grafana_container_image: "{{ grafana_container_image_registry_prefix }}grafana/grafana-oss:{{ grafana_container_image_tag }}"

comparing with the Grafana-website I put this line in my vars.yml:

grafana_container_image: "{{ grafana_container_image_registry_prefix }}grafana/grafana:{{ grafana_version}}"

and now I have a functioning v12.2.0 on my server. Please could you evtl. x-check and confirm that in main.yml one must now have:

grafana_container_image: "{{ grafana_container_image_registry_prefix }}grafana/grafana:{{ grafana_container_image_tag }}"

(i.e. without -oss) instead? (for enterprise: grafana-enterprise).

Thank you!

Best regards, M.

To Reproduce My vars.yml file looks like this:

Paste your vars.yml file here.
Make sure to remove any secret values before posting your vars.yml file publicly.

Expected behavior A clear and concise description of what you expected to happen.

Pull of the official grafana oss image successful

Matrix Server:

  • OS: [e.g. RaspberryPi OS (based on Debian Bookworm)]
  • Architecture [arm64 / RasPi 5 8GB]

Ansible: If your problem appears to be with Ansible, tell us:

  • where you run Ansible — e.g. on the Matrix server itself; on another computer (which OS? distro? standard installation or containerized Ansible?)
  • what version of Ansible you're running (see ansible --version)

Client:

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

UehgxEQbFiw4Tlw8 avatar Oct 18 '25 13:10 UehgxEQbFiw4Tlw8