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.
4 lines
59 B
YAML
4 lines
59 B
YAML
---
|
|
allow_duplicates: false
|
|
dependencies:
|
|
- role: docker
|