davidalger.php_cachetool
Ansible 角色:PHP CacheTool
从 https://github.com/gordalina/cachetool 安装 PHP 的 CacheTool。CacheTool 允许你通过命令行与 apc
、opcache
和文件状态缓存进行交互。它将连接到快速cgi服务器(如 php-fpm
)并操作其缓存。
需求
无。
角色变量
cachetool_download_url: http://gordalina.github.io/cachetool/downloads/cachetool.phar
下载并安装 CacheTool phar 文件的 URL。对于 7.1 之前的 PHP 版本,此变量必须从默认值(如上所示)更改为 https://github.com/gordalina/cachetool/blob/gh-pages/downloads/cachetool-3.2.1.phar?raw=true
(在 defaults/main.yml
中有说明)。
依赖
无。
示例剧本
- hosts: web-servers
roles:
- { role: davidalger.php_cachetool, tags: php-cachetool }
许可证
本作品采用 MIT 许可证。有关详细信息,请参见 LICENSE 文件。
作者信息
此角色由 David Alger 于 2018 年创建。
关于项目
Installs CacheTool for PHP allowing you to work with `apc`, `opcache`, etc the file status cache through the CLI.
安装
ansible-galaxy install davidalger.php_cachetool
许可证
mit
下载
607
拥有者
Principal SRE, Software Engineer, Infrastructure, DevOps, Magento Master, Cloud Architect, AWS, GCP, Terraform, Ansible, Kubernetes