https://github.com/firehed/ansible-php
Ansible role: Install and configure PHP
https://github.com/firehed/ansible-php
Last synced: 5 months ago
JSON representation
Ansible role: Install and configure PHP
- Host: GitHub
- URL: https://github.com/firehed/ansible-php
- Owner: Firehed
- Created: 2015-11-02T20:32:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T22:55:12.000Z (over 10 years ago)
- Last Synced: 2025-06-11T15:30:21.343Z (about 1 year ago)
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PHP
===
Install and configure PHP
Requirements
------------
If using PHP-FPM, the configured system user and group must already exist on the system. PHP-FPM will be installed and configured when `fpm` is in the `php_packages` list.
Role Variables
--------------
# Required if using FPM
php_fpm_user: (system user)
php_fpm_group: (system group)
# Optional, defaults shown
php_version: php56
php_packages:
- fpm
- pdo
- opcache
- cli
- mcrypt
- common
php_log: syslog
php_log_level: E_ALL
php_timezone: UTC
php_fpm_listen: /var/run/php-fpm.sock
php_fpm_log: syslog
php_fpm_log_level: notice # alert, error, warning, notice, debug
`php_version` can be any of `php54`, `php55`, `php56`, or `php70`. Use of PHP5.4 is strongly discouraged as it is [no longer maintained](http://php.net/supported-versions.php). 5.5 will receive secutity fixes only until 2016-07-10.
Specifying an exact point release is not supported at this time.
Dependencies
------------
None
Example Playbook
----------------
- hosts: servers
roles:
- role: Firehed.php
php_version: php70
php_packages:
- fpm
- common
- cli
- pecl-memcached
License
-------
MIT