darthwade.zend-opcache
Ansible Role: Zend OpCache
[
](https://flattr.com/submit/auto?user_id=darthwade&url=https://github.com/darthwade/ansible-role-zend-opcache&title=Ansible Role: Zend OpCache&language=&tags=github&category=software)
Ansible role that installs & configures Zend OpCache.
Features include:
- Installation of Zend OpCache and it's dependencies
- Automatic configuration
Installation
Using ansible-galaxy:
$ ansible-galaxy install darthwade.zend-opcache
Using arm (Ansible Role Manager):
$ arm install darthwade.zend-opcache
Using git:
$ git clone https://github.com/darthwade/ansible-role-zend-opcache.git
Requirements & Dependencies
- Ansible 1.4 or higher
- PHP 5.5 or higher
- PHP PECL (darthwade.php-pecl)
Variables
Here is a list of all the default variables for this role, which are also available in defaults/main.yml.
opcache_version: 7.0.3
opcache_memory_consumption: 128
opcache_interned_strings_buffer: 8
opcache_max_accelerated_files: 4000
opcache_revalidate_freq: 60
opcache_fast_shutdown: 1
opcache_enable_cli: 1
opcache_save_comments: 0
Example playbook
- hosts: all
vars:
opcache_version: 7.0.2
roles:
- darthwade.zend-opcache
Testing
$ git clone https://github.com/darthwade/ansible-role-zend-opcache.git
$ cd ansible-role-zend-opcache
$ vagrant up
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Licensed under the MIT License. See the LICENSE file for details.
Copyright (c) 2014 Vadym Petrychenko
Install
ansible-galaxy install darthwade.zend-opcacheLicense
mit
Downloads
82
Owner
