mirror of
https://github.com/luzifer-ansible/duplicity-backup.git
synced 2024-12-23 01:11:16 +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
|
||||
|
||||
- name: Install duplicity-backup wrapper
|
||||
get_url:
|
||||
url: https://github.com/Luzifer/duplicity-backup/releases/download/v0.8.2/duplicity-backup_linux_amd64
|
||||
dest: /usr/local/bin/duplicity-backup
|
||||
force: yes
|
||||
mode: 0755
|
||||
unarchive:
|
||||
remote_src: true
|
||||
src: "https://github.com/Luzifer/duplicity-backup/releases/download/{{ duplicity_backup_version }}/duplicity-backup_linux_amd64.tar.gz"
|
||||
dest: /usr/local/bin
|
||||
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
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue