Skip to content
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
17 changes: 3 additions & 14 deletions roles/cli/cachetool/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
---
- name: Check if we already have cachetool.
stat:
- name: Remove previous cachetool if exists.
ansible.builtin.file:
path: "{{ cachetool_bin }}"
register: cachetool_global
when:
- deploy_operation == 'deploy'

- name: Ensure bin directory exists.
file:
path: "{{ cachetool_bin | dirname }}"
state: directory
when:
- deploy_operation == 'deploy'
state: absent

- name: Download cachetool depending on latest php version installed. # If not specified manually, according to https://github.com/gordalina/cachetool#compatibility
block:
Expand Down Expand Up @@ -71,7 +62,6 @@

when:
- deploy_operation == 'deploy'
- not cachetool_global.stat.exists
- cachetool.version | length == 0

- name: "Download cachetool version {{ cachetool.version }} installer."
Expand All @@ -81,6 +71,5 @@
mode: 0755
when:
- deploy_operation == 'deploy'
- not cachetool_global.stat.exists
- cachetool.version is defined
- cachetool.version | length > 0