瀏覽代碼

matrix-backup-borg: add readability and ease of use to code

pull/1754/head
Adriel Sand 4 年之前
父節點
當前提交
ab15f839cf
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      roles/matrix-backup-borg/defaults/main.yml
  2. +1
    -1
      roles/matrix-backup-borg/tasks/validate_config.yml

+ 1
- 1
roles/matrix-backup-borg/defaults/main.yml 查看文件

@@ -51,7 +51,7 @@ matrix_backup_borg_encryption: repokey-blake2
matrix_backup_borg_ssh_key_private: ""

# allow unencrypted repo access
matrix_backup_borg_unknown_unencrypted_repo_access_is_ok: false
matrix_backup_borg_unknown_unencrypted_repo_access_is_ok: "{{ matrix_backup_borg_encryption == 'none' }}"

# borg ssh command with ssh key
matrix_backup_borg_storage_ssh_command: ssh -o "StrictHostKeyChecking accept-new" -i /etc/borgmatic.d/sshkey


+ 1
- 1
roles/matrix-backup-borg/tasks/validate_config.yml 查看文件

@@ -12,4 +12,4 @@
fail:
msg: >-
You need to define a required passphrase.
when: "matrix_backup_borg_storage_encryption_passphrase == '' and not matrix_backup_borg_encryption == 'none'"
when: "matrix_backup_borg_storage_encryption_passphrase == '' and matrix_backup_borg_encryption != 'none'"

Loading…
取消
儲存