Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/cli/cachetool/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
cachetool:
version: 8.2.2
version: latest # # enter three-digit version number, e.g. "7.0.0", to install a specific version
13 changes: 12 additions & 1 deletion roles/cli/cachetool/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@
when:
- deploy_operation == 'deploy'

- name: Download cachetool installer.
- name: Download latest cachetool installer.
get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- deploy_operation == 'deploy'
- not cachetool_global.stat.exists
- cachetool.version == 'latest'

- name: "Download cachetool version {{ cachetool.version }} installer."
get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-{{ cachetool.version }}.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- deploy_operation == 'deploy'
- not cachetool_global.stat.exists
- cachetool.version != 'latest'