diff options
| author | Magnus Kühne <73171182+magkue@users.noreply.github.com> | 2026-01-23 16:24:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-23 16:24:02 +0100 |
| commit | f6294fe0b2bb4ec2be2587434da60dc187ee59b4 (patch) | |
| tree | b98daf10000c6eb5c59dbf5552289d5420f88d08 | |
| parent | 2c93ccbb97251a57dd59449ac799cc2541c4b239 (diff) | |
| download | ansible-role-borgbackup-f6294fe0b2bb4ec2be2587434da60dc187ee59b4.tar.gz ansible-role-borgbackup-f6294fe0b2bb4ec2be2587434da60dc187ee59b4.zip | |
If passphrase contains special characters like (!, $, &, ^, *, @), this needs to be escaped.
Co-authored-by: Colin Wilk <colin@wilk.cx>
| -rw-r--r-- | tasks/client_create_scripts_each.yml | 2 |
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(' ') }} \ |