From 649f6aae0cd96f5cfbe8855bbb0b4f88bdd003fd Mon Sep 17 00:00:00 2001 From: Matthias Leutenegger Date: Thu, 12 Nov 2020 23:00:23 +0100 Subject: [PATCH] change: bump default restic version to `0.11.0` (#27) * change: update default restic version * add: test the backups to run --- README.md | 2 +- defaults/main.yml | 2 +- molecule/default/test_restic/tasks/test_backup_files.yml | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13d664c..5c205ae 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ ansible-galaxy install arillso.restic | Name | Default | Description | | ---------------------- | -------------------- | --------------------------------------------------------------------------- | | `restic_url` | `undefined` | The URL to download restic from. Use this variable to overwrite the default | -| `restic_version` | `'0.10.0'` | The version of Restic to install | +| `restic_version` | `'0.11.0'` | The version of Restic to install | | `restic_download_path` | `'/opt/restic'` | Download location for the restic binary | | `restic_install_path` | `'/usr/local/bin'` | Install location for the restic binary | | `restic_script_dir` | `'~/restic'` | Location of the generated backup scripts | diff --git a/defaults/main.yml b/defaults/main.yml index ebb6643..2be548e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- # defaults file for skeleton restic_url: '{{ restic_url_default }}' -restic_version: '0.10.0' +restic_version: '0.11.0' restic_download_path: '/opt/restic' restic_install_path: '/usr/bin' restic_script_dir: '~/restic' diff --git a/molecule/default/test_restic/tasks/test_backup_files.yml b/molecule/default/test_restic/tasks/test_backup_files.yml index c2e6f85..b3061f4 100644 --- a/molecule/default/test_restic/tasks/test_backup_files.yml +++ b/molecule/default/test_restic/tasks/test_backup_files.yml @@ -16,3 +16,11 @@ assert: that: - test_stdin_file.stat.exists + + - name: Run the backup scripts + shell: "./{{ item }}" + args: + chdir: ~/restic/ + with_items: + - backup-test.sh + - backup-test_stdin.sh