9134682667693885fa097df27a301e5a03d6ed3f
Role Name
Install php-fpm (for apache)
and some php packages along the way
Requirements
None
Role Variables
php_poolname: default www (version will be appended) php_version: default 74 php_fpm_listen_url: no default php_fpm_pool_user: default apache php_fpm_pool_group: default apache php_fpm_listen_url: default 127.0.0.1:90{{ php_version }} php_pm: static php_pm_max_children: 1000 php_pm_max_requests: 10000 php_pm_status_url: /phpstatus php_packages: [ 'php{{ php_version }}-php-common' ]
Dependencies
Better have apache
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
roles:
- role: tconstans.php-fpm
vars:
php_poolname: pool1
php_fpm_listen_url: "/srv/pool1/php-fpm.sock"
php_version: 74
php_packages:
- php{{ php_version }}-php-mbstring
- php{{ php_version }}-php-mysqlnd
- php{{ php_version }}-php-pdo
- php{{ php_version }}-php-xml
- php{{ php_version }}-php-gd
- php{{ php_version }}-php-posix
- php{{ php_version }}-php-ldap
- php{{ php_version }}-php-curl
- php{{ php_version }}-php-iconv
- php{{ php_version }}-php-openssl
- php{{ php_version }}-php-zip
- php{{ php_version }}-php-zlib
- php{{ php_version }}-php-ctype
- role: tconstans.php-fpm
vars:
php_poolname: pool2
php_fpm_listen_url: "/srv/pool2/php-fpm.sock"
php_version: 80
php_packages:
- php{{ php_version }}-php-zip License
BSD
Author Information
Thomas C thomas@opendoor.fr
Description