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:
Knut Ahlers 2018-10-08 22:48:50 +02:00
parent 0358753f8f
commit 46b8f2171d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,5 @@
--- ---
duplicity_backup_version: v0.8.2 duplicity_backup_version: v0.9.0
... ...

View file

@ -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: