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