mirror of
https://github.com/luzifer-ansible/duplicity-backup.git
synced 2024-11-09 14:10:00 +00:00
Breaking: Port to new release format
Makes the version incompatible with previous releases. The minimal version to be deployed using this is v0.9.0 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0358753f8f
commit
46b8f2171d
2 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
duplicity_backup_version: v0.8.2
|
duplicity_backup_version: v0.9.0
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -24,12 +24,16 @@
|
||||||
register: duplicity_backup_version_cmd
|
register: duplicity_backup_version_cmd
|
||||||
|
|
||||||
- name: Install duplicity-backup wrapper
|
- name: Install duplicity-backup wrapper
|
||||||
get_url:
|
unarchive:
|
||||||
url: https://github.com/Luzifer/duplicity-backup/releases/download/v0.8.2/duplicity-backup_linux_amd64
|
remote_src: true
|
||||||
dest: /usr/local/bin/duplicity-backup
|
src: "https://github.com/Luzifer/duplicity-backup/releases/download/{{ duplicity_backup_version }}/duplicity-backup_linux_amd64.tar.gz"
|
||||||
force: yes
|
dest: /usr/local/bin
|
||||||
mode: 0755
|
|
||||||
when: duplicity_backup_version not in duplicity_backup_version_cmd.stdout
|
when: duplicity_backup_version not in duplicity_backup_version_cmd.stdout
|
||||||
|
register: duplicity_backup_unarchive
|
||||||
|
|
||||||
|
- name: Move new duplicity-backup version in place
|
||||||
|
command: mv /usr/local/bin/duplicity-backup_linux_amd64 /usr/local/bin/duplicity-backup
|
||||||
|
when: duplicity_backup_unarchive.changed
|
||||||
|
|
||||||
- name: Deploy duplicity-s3 configuration
|
- name: Deploy duplicity-s3 configuration
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue