Parcourir la source

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

pull/1754/head
Adriel Sand il y a 4 ans
Parent
révision
ab15f839cf
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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'"

Chargement…
Annuler
Enregistrer