Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 3b852e7

Browse files
authored
Adding-delay-opcache-status-check (#737)
* Adding-delay-opcache-status-check * Removing-failed-when
1 parent c468317 commit 3b852e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/cli/cachetool/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
cachetool:
33
version: "" # enter three-digit version number, e.g. "7.0.0", to install a specific version. If not specified, will be installed depending on the php version.
44
unix_socket: false # Set to true to use automatic detection of Unix socket as set by ce-provision
5+
check_retries: 5
6+
check_delay: 20
57
# Adapter string to use as argument.
68
# e.g.
79
# --fcgi=127.0.0.1:9000

roles/cli/cachetool/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@
107107
ansible.builtin.command:
108108
cmd: "{{ cachetool_bin }} {{ _cachetool_adapter }} -n opcache:status"
109109
when: _php_version.stdout | length > 0
110+
register: opcache_status_check
111+
retries: "{{ cachetool.check_retries }}"
112+
delay: "{{ cachetool.check_delay }}"
113+
until: opcache_status_check.rc == 0

0 commit comments

Comments
 (0)