davidalger.php_fpm
Ansible Role: PHP-FPM
This role installs php-fpm using RPMs from the IUS Community Project on RHEL / CentOS 7. If you need older versions of PHP, you can enable the ius-archive repository.
Currently, this role sets up php-fpm
with default settings tailored for the Magento 2 application. Some of these default settings might be too high for other applications. For example, the php-opcache settings are particularly high to ensure peak performance for Magento 2, but they can be lowered for other uses. Check the defaults/main.yml
and vars/opcache.yml
files for more information.
Requirements
No special requirements.
Role Variables
php_version: 73
You can specify any PHP version supported by IUS RPMs, such as 55, 56, 70, 71, 72, 73, 74, etc. For older versions, you also need to set php_enablerepo: ius-archive
.
Refer to defaults/main.yml
for a full list of variables to customize your php-fpm installation.
Dependencies
davidalger.repo_ius
Example Playbook
- hosts: web-servers
roles:
- { role: davidalger.php_fpm, tags: php-fpm }
License
This project is licensed under the MIT license. See the LICENSE file for more details.
Author Information
This role was created in 2017 by David Alger.
ansible-galaxy install davidalger.php_fpm