1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00

do not compare empty string

This commit is contained in:
Matthias Leutenegger 2019-08-15 09:59:53 +02:00
parent 14efc66902
commit 1f12e41b86
3 changed files with 2 additions and 3 deletions

View file

@ -63,7 +63,7 @@ CRON=true /path/to/backup/script/backup-example.sh
| Name | Default | Description | | Name | Default | Description |
| ---------------------- | -------------------- | --------------------------------------------------------------------------- | | ---------------------- | -------------------- | --------------------------------------------------------------------------- |
| `restic_url` | `''` | 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.9.5'` | The version of Restic to install | | `restic_version` | `'0.9.5'` | 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 |

View file

@ -1,6 +1,5 @@
--- ---
# defaults file for skeleton # defaults file for skeleton
restic_url: ''
restic_version: '0.9.5' restic_version: '0.9.5'
restic_download_path: '/opt/restic' restic_download_path: '/opt/restic'
restic_install_path: '/usr/bin' restic_install_path: '/usr/bin'

View file

@ -8,7 +8,7 @@
restic_url_v: 'v{{ restic_version }}/restic_{{ restic_version }}_' restic_url_v: 'v{{ restic_version }}/restic_{{ restic_version }}_'
restic_file: '{{ restic_system }}_{{ restic_platform }}.bz2' restic_file: '{{ restic_system }}_{{ restic_platform }}.bz2'
restic_url: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}' restic_url: '{{ restic_url_r }}{{ restic_url_v }}{{ restic_file }}'
when: restic_url == '' when: restic_url is not defined
- name: Download client binary - name: Download client binary
get_url: get_url: