Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Commit

Permalink
fix: allow restic version upgrades & downgrades.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Chabik committed Jun 1, 2018
1 parent d400c0c commit 2516006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@

- name: Decompress the binary
become: false
shell: "bzip2 -dc /tmp/restic_{{ restic_version }}_{{ ansible_system | lower }}_{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.bz2 > /tmp/restic"
shell: "bzip2 -dc /tmp/restic_{{ restic_version }}_{{ ansible_system | lower }}_{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.bz2 > /tmp/restic_{{ restic_version }}"
args:
creates: "/tmp/restic"
creates: "/tmp/restic_{{ restic_version }}"
delegate_to: localhost
run_once: true
check_mode: false

- name: Propagate restic binary
copy:
src: /tmp/restic
src: "/tmp/restic_{{ restic_version }}"
dest: '{{ restic_install_path }}/restic'
mode: '0750'
owner: 'root'
Expand Down

0 comments on commit 2516006

Please sign in to comment.