diff --git a/tasks/main.yml b/tasks/main.yml index 64e8e99..f23459c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,7 +13,12 @@ export RESTIC_REPOSITORY="s3:{{ restic_aws_endpoint }}/{{ restic_aws_bucket_name }}" export RESTIC_PASSWORD={{ restic_password | to_json }} + {% if restic_compression is defined %}export RESTIC_COMPRESSION={{ restic_compression }}{% endif %} + + {% if restic_build_command is defined %} + {{ restic_build_command }} + {% endif %} restic backup {{ restic_directory }} dest: "/etc/periodic/daily/backup_{{ ansible_play_name | replace(' ', '_') }}" mode: 0755