diff options
Diffstat (limited to 'roles/restic/tasks')
| -rw-r--r-- | roles/restic/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/restic/tasks/main.yml b/roles/restic/tasks/main.yml new file mode 100644 index 00000000..ae82d3bc --- /dev/null +++ b/roles/restic/tasks/main.yml @@ -0,0 +1,12 @@ +--- +- name: "Check installed restic versions" + ansible.builtin.command: + cmd: "mise ls restic" + register: restic_installed_versions + changed_when: false + +- name: "Install restic" + ansible.builtin.command: + cmd: "mise use --global restic@{{ restic_version }}" + changed_when: true + when: restic_version not in restic_installed_versions.stdout |
