From acecc23cec355ed66df5a1f0a41243182976c3d5 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Sat, 8 Nov 2025 14:59:16 +0100 Subject: [PATCH] fix: Resolve recursive loop in git_repository_url variable - Change git_repository_url to use git_repository_url_default instead of self-reference - Fixes 'Recursive loop detected in template' error in Ansible playbook --- deployment/ansible/playbooks/deploy-application-code.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/ansible/playbooks/deploy-application-code.yml b/deployment/ansible/playbooks/deploy-application-code.yml index 1ba8ca45..ffe2609c 100644 --- a/deployment/ansible/playbooks/deploy-application-code.yml +++ b/deployment/ansible/playbooks/deploy-application-code.yml @@ -6,7 +6,8 @@ vars: application_code_dest: "/home/deploy/michaelschiemer/current" - git_repository_url: "{{ git_repository_url | default('https://git.michaelschiemer.de/michael/michaelschiemer.git') }}" + git_repository_url_default: "https://git.michaelschiemer.de/michael/michaelschiemer.git" + git_repository_url: "{{ git_repository_url | default(git_repository_url_default) }}" # Determine branch based on environment git_branch: >- {%- if deployment_environment == 'staging' -%}