Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
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
14 changes: 7 additions & 7 deletions roles/cli/cachetool/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@

- name: Download latest cachetool installer if PHP is 8.1 or newer.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- _php_version_str.stdout | int >= 81

- name: Download cachetool version 8.5.0 installer if PHP is 8.0.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-8.5.0.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-8.5.0.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- _php_version_str.stdout | int == 80

- name: Download cachetool version 7.1.0 installer if PHP is 7.3 or newer.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-7.1.0.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-7.1.0.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
Expand All @@ -52,31 +52,31 @@

- name: Download cachetool version 5.1.3 installer if PHP is 7.2.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-5.1.3.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-5.1.3.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- _php_version_str.stdout | int == 72

- name: Download cachetool version 4.1.1 installer if PHP is 7.1.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-4.1.1.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-4.1.1.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- _php_version_str.stdout | int == 71

- name: Download cachetool version 3.2.2 installer if PHP version is too old.
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-3.2.2.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-3.2.2.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
- _php_version_str.stdout | int < 71

- name: "Download the specified {{ cachetool.version }} cachetool version installer."
ansible.builtin.get_url:
url: "http://gordalina.github.io/cachetool/downloads/cachetool-{{ cachetool.version }}.phar"
url: "https://gordalina.github.io/cachetool/downloads/cachetool-{{ cachetool.version }}.phar"
dest: "{{ cachetool_bin }}"
mode: 0755
when:
Expand Down