From f6294fe0b2bb4ec2be2587434da60dc187ee59b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20K=C3=BChne?= <73171182+magkue@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:24:02 +0100 Subject: Handle special characters around BORG_PASSPHRASE variable If passphrase contains special characters like (!, $, &, ^, *, @), this needs to be escaped. Co-authored-by: Colin Wilk --- tasks/client_create_scripts_each.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tasks') diff --git a/tasks/client_create_scripts_each.yml b/tasks/client_create_scripts_each.yml index dcf379f..f36ba7c 100644 --- a/tasks/client_create_scripts_each.yml +++ b/tasks/client_create_scripts_each.yml @@ -23,7 +23,7 @@ path: '{{ script_location }}' marker: '## {mark} ANSIBLE MANAGED BLOCK for server: {{ borg_server_host_url }}' block: | - export BORG_PASSPHRASE={{ borg_passphrase }} + export BORG_PASSPHRASE={{ borg_passphrase | quote }} borg create -C {{ borg_compression }} \ borg@{{ borg_server_host_url }}:{{ borg_server_user_home }}/{{ borg_repo_name }}::{{ borg_backup_name_format }} \ {{ borg_included_dirs | map('quote') | join(' ') }} \ -- cgit v1.2.3