Explorar el Código

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

pull/1754/head
Adriel Sand hace 3 años
padre
commit
ab15f839cf
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar