From 3ba13cf00d6ba8581462fd1a397e03604c2da1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 28 Aug 2025 15:16:32 +0200 Subject: [PATCH] Parameterize image names in compose.yaml Replaced hardcoded image names in the `compose.yaml` file with variables defined in `vars/main.yml`. This makes the configuration more flexible and easier to customize. --- templates/compose.yaml | 6 +++--- vars/main.yml | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/compose.yaml b/templates/compose.yaml index 4388da2..ca16739 100644 --- a/templates/compose.yaml +++ b/templates/compose.yaml @@ -83,13 +83,13 @@ services: ###> chill-project/chill-bundles ### redis: - image: redis + image: "{{ chill_image_redis }}" networks: - default restart: always relatorio: - image: registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest + image: "{{ chill_image_relatorio }}" networks: - default restart: always @@ -120,7 +120,7 @@ services: # condition: service_healthy rabbitmq: - image: rabbitmq:3-management-alpine + image: "{{ chill_image_rabbitmq }}" env_file: - rabbitmq.env healthcheck: diff --git a/vars/main.yml b/vars/main.yml index 5998f79..995747b 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,7 @@ --- # vars file for ansible_role_chill + +chill_image_redis: "redis" +chill_image_rabbitmq: "rabbitmq:3-management-alpine" +chill_image_relatorio: "registry.gitlab.com/champs-libres/public/relatorio-tornado/app:latest" +traefik_image_traefik: "traefik:v3.2"