aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/client_create_scripts_each.yml
diff options
context:
space:
mode:
authorMagnus Kühne <73171182+magkue@users.noreply.github.com>2026-01-23 16:24:02 +0100
committerGitHub <noreply@github.com>2026-01-23 16:24:02 +0100
commitf6294fe0b2bb4ec2be2587434da60dc187ee59b4 (patch)
treeb98daf10000c6eb5c59dbf5552289d5420f88d08 /tasks/client_create_scripts_each.yml
parent2c93ccbb97251a57dd59449ac799cc2541c4b239 (diff)
downloadansible-role-borgbackup-1.0.4.tar.gz
ansible-role-borgbackup-1.0.4.zip
Handle special characters around BORG_PASSPHRASE variableHEADv1.0.4master
If passphrase contains special characters like (!, $, &, ^, *, @), this needs to be escaped. Co-authored-by: Colin Wilk <colin@wilk.cx>
Diffstat (limited to 'tasks/client_create_scripts_each.yml')
-rw-r--r--tasks/client_create_scripts_each.yml2
1 files changed, 1 insertions, 1 deletions
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(' ') }} \