From 4c9d582ba612cf697dbb79da6d08972259f52628 Mon Sep 17 00:00:00 2001
From: lilly
Date: Thu, 23 Jul 2026 18:37:17 +0200
Subject: [PATCH] specify that docker_compose role may not be included twice
Our docker compose role is configured via ansible variables in a way
that overwrites each other if it is activated twice with different
variable assignments (unless e.g. a role that just installs more
packages).
To prevent misuse of the role, the allow_duplicates key of the role
meta is set to false. This should make ansible complain if the role
is included twice for a single host.
---
roles/docker_compose/meta/main.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/roles/docker_compose/meta/main.yaml b/roles/docker_compose/meta/main.yaml
index cb7d8e0..1fbb236 100644
--- a/roles/docker_compose/meta/main.yaml
+++ b/roles/docker_compose/meta/main.yaml
@@ -1,3 +1,4 @@
---
+allow_duplicates: false
dependencies:
- role: docker