From 298ba806649193d63fc491b246d1441c66f983f6 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 3 Dec 2025 19:13:06 +0100 Subject: [PATCH] Added explicit variable names --- roles/web-app-discourse/tasks/main.yml | 2 ++ roles/web-app-mailu/tasks/main.yml | 4 +++- roles/web-app-matomo/tasks/main.yml | 2 ++ roles/web-svc-cdn/tasks/main.yml | 2 ++ roles/web-svc-collabora/tasks/main.yml | 4 +++- roles/web-svc-coturn/tasks/main.yml | 4 +++- roles/web-svc-logout/tasks/main.yml | 4 +++- roles/web-svc-onlyoffice/tasks/main.yml | 4 +++- roles/web-svc-simpleicons/tasks/main.yml | 2 ++ 9 files changed, 23 insertions(+), 5 deletions(-) diff --git a/roles/web-app-discourse/tasks/main.yml b/roles/web-app-discourse/tasks/main.yml index f0270e3c..ff3bcbd4 100644 --- a/roles/web-app-discourse/tasks/main.yml +++ b/roles/web-app-discourse/tasks/main.yml @@ -2,3 +2,5 @@ - name: "Setup {{ application_id }}" include_tasks: 01_core.yml when: run_once_web_app_discourse is not defined + vars: + application_id: 'web-app-discourse' diff --git a/roles/web-app-mailu/tasks/main.yml b/roles/web-app-mailu/tasks/main.yml index 3a1b5457..4d9c8dfd 100644 --- a/roles/web-app-mailu/tasks/main.yml +++ b/roles/web-app-mailu/tasks/main.yml @@ -1,3 +1,5 @@ --- - include_tasks: 01_core.yml - when: run_once_web_app_mailu is not defined \ No newline at end of file + when: run_once_web_app_mailu is not defined + vars: + application_id: 'web-app-mailu' \ No newline at end of file diff --git a/roles/web-app-matomo/tasks/main.yml b/roles/web-app-matomo/tasks/main.yml index f969da9b..a7f6adcd 100644 --- a/roles/web-app-matomo/tasks/main.yml +++ b/roles/web-app-matomo/tasks/main.yml @@ -2,3 +2,5 @@ - name: "Execute Role (once)" include_tasks: 01_core.yml when: run_once_web_app_matomo is not defined + vars: + application_id: 'web-app-matomo' diff --git a/roles/web-svc-cdn/tasks/main.yml b/roles/web-svc-cdn/tasks/main.yml index cfe1d174..b8a09072 100644 --- a/roles/web-svc-cdn/tasks/main.yml +++ b/roles/web-svc-cdn/tasks/main.yml @@ -1,5 +1,7 @@ - include_tasks: 01_core.yml when: run_once_web_svc_cdn is not defined + vars: + application_id: 'web-svc-cdn' - include_tasks: "{{ [ playbook_dir, 'tasks/utils/load_handlers.yml' ] | path_join }}" vars: diff --git a/roles/web-svc-collabora/tasks/main.yml b/roles/web-svc-collabora/tasks/main.yml index 8ec5f4f8..ac094f4f 100644 --- a/roles/web-svc-collabora/tasks/main.yml +++ b/roles/web-svc-collabora/tasks/main.yml @@ -1,3 +1,5 @@ - name: "Load core functions for '{{ application_id }}'" include_tasks: 01_core.yml - when: run_once_web_svc_collabora is not defined \ No newline at end of file + when: run_once_web_svc_collabora is not defined + vars: + application_id: 'web-svc-collabora' \ No newline at end of file diff --git a/roles/web-svc-coturn/tasks/main.yml b/roles/web-svc-coturn/tasks/main.yml index d5e06fec..6cc8d09c 100644 --- a/roles/web-svc-coturn/tasks/main.yml +++ b/roles/web-svc-coturn/tasks/main.yml @@ -1,3 +1,5 @@ --- - include_tasks: 01_core.yml - when: run_once_web_svc_coturn is not defined \ No newline at end of file + when: run_once_web_svc_coturn is not defined + vars: + application_id: 'web-svc-coturn' \ No newline at end of file diff --git a/roles/web-svc-logout/tasks/main.yml b/roles/web-svc-logout/tasks/main.yml index fad649fe..82eb8df8 100644 --- a/roles/web-svc-logout/tasks/main.yml +++ b/roles/web-svc-logout/tasks/main.yml @@ -1,3 +1,5 @@ --- - include_tasks: 01_core.yml - when: run_once_web_svc_logout is not defined \ No newline at end of file + when: run_once_web_svc_logout is not defined + vars: + application_id: 'web-svc-logout' \ No newline at end of file diff --git a/roles/web-svc-onlyoffice/tasks/main.yml b/roles/web-svc-onlyoffice/tasks/main.yml index 4f01ef30..33e9979d 100644 --- a/roles/web-svc-onlyoffice/tasks/main.yml +++ b/roles/web-svc-onlyoffice/tasks/main.yml @@ -1,3 +1,5 @@ - name: "Load core functions for '{{ application_id }}'" include_tasks: 01_core.yml - when: run_once_web_svc_onlyoffice is not defined \ No newline at end of file + when: run_once_web_svc_onlyoffice is not defined + vars: + application_id: 'web-app-onlyoffice' \ No newline at end of file diff --git a/roles/web-svc-simpleicons/tasks/main.yml b/roles/web-svc-simpleicons/tasks/main.yml index 13a3c9bd..3c32269d 100644 --- a/roles/web-svc-simpleicons/tasks/main.yml +++ b/roles/web-svc-simpleicons/tasks/main.yml @@ -2,3 +2,5 @@ - name: "Load core functions for '{{ application_id }}'" include_tasks: 01_core.yml when: run_once_web_svc_simpleicons is not defined + vars: + application_id: 'web-svc-simpleicons'