From b2e32aacf33725d6d72ff91fe7059f97d4c49c79 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 12 Jul 2025 13:42:07 +0200 Subject: [PATCH] Optimized template descriptions --- templates/roles/web-app/config/README.md.j2 | 11 +++++++++++ templates/roles/web-app/vars/main.yml.j2 | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/roles/web-app/config/README.md.j2 diff --git a/templates/roles/web-app/config/README.md.j2 b/templates/roles/web-app/config/README.md.j2 new file mode 100644 index 00000000..16b6728c --- /dev/null +++ b/templates/roles/web-app/config/README.md.j2 @@ -0,0 +1,11 @@ +# Config + +The domains defined here can be customized by the system administrator. By default, they’re loaded from `../../group_vars/all/04_applications.yml`, but you can override them per application in your repository: + +```yaml +applications: + {{ application_id }}: + variable_a: "test string" # Replaces the default value + variable_b: {} # Merges with the existing content + variable_c: [] # Replaces the default value (use caution with domains) +``` diff --git a/templates/roles/web-app/vars/main.yml.j2 b/templates/roles/web-app/vars/main.yml.j2 index e93f0f8b..14a7fdba 100644 --- a/templates/roles/web-app/vars/main.yml.j2 +++ b/templates/roles/web-app/vars/main.yml.j2 @@ -1,2 +1,2 @@ -application_id: {{ application_id }} # ID of the application +application_id: {{ application_id }} # ID of the application, should be the name of the role folder database_type: 0 # Database type [postgres, mariadb] \ No newline at end of file