mirror of
https://github.com/roles-ansible/ansible_role_restic_archiver.git
synced 2024-08-16 10:09:49 +02:00
change: bump default restic version to 0.11.0
(#27)
* change: update default restic version * add: test the backups to run
This commit is contained in:
parent
e57e81a115
commit
649f6aae0c
3 changed files with 10 additions and 2 deletions
|
@ -65,7 +65,7 @@ ansible-galaxy install arillso.restic
|
||||||
| Name | Default | Description |
|
| Name | Default | Description |
|
||||||
| ---------------------- | -------------------- | --------------------------------------------------------------------------- |
|
| ---------------------- | -------------------- | --------------------------------------------------------------------------- |
|
||||||
| `restic_url` | `undefined` | The URL to download restic from. Use this variable to overwrite the default |
|
| `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_download_path` | `'/opt/restic'` | Download location for the restic binary |
|
||||||
| `restic_install_path` | `'/usr/local/bin'` | Install 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 |
|
| `restic_script_dir` | `'~/restic'` | Location of the generated backup scripts |
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# defaults file for skeleton
|
# defaults file for skeleton
|
||||||
restic_url: '{{ restic_url_default }}'
|
restic_url: '{{ restic_url_default }}'
|
||||||
restic_version: '0.10.0'
|
restic_version: '0.11.0'
|
||||||
restic_download_path: '/opt/restic'
|
restic_download_path: '/opt/restic'
|
||||||
restic_install_path: '/usr/bin'
|
restic_install_path: '/usr/bin'
|
||||||
restic_script_dir: '~/restic'
|
restic_script_dir: '~/restic'
|
||||||
|
|
|
@ -16,3 +16,11 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- test_stdin_file.stat.exists
|
- test_stdin_file.stat.exists
|
||||||
|
|
||||||
|
- name: Run the backup scripts
|
||||||
|
shell: "./{{ item }}"
|
||||||
|
args:
|
||||||
|
chdir: ~/restic/
|
||||||
|
with_items:
|
||||||
|
- backup-test.sh
|
||||||
|
- backup-test_stdin.sh
|
||||||
|
|
Loading…
Reference in a new issue