Ansible role to install and configure php-fpm pools.
To install this roles clone it into your roles directory.
$ git clone https://github.com/ovv/ansible-role-php7.git ovv.php7
If your playbook already reside inside a git repository you can clone it by using git submodules.
$ git submodule add -b master https://github.com/ovv/ansible-role-php7.git ovv.php7
php_version
: PHP version to installcustom_php_packages
: Custom packages to install (default to empty).php_pools
: Dict describing the php-fpm pools. Use thekey
as pool name.user
: Pool user (required).group
: Pool group (default touser
).createhome
: Create home foruser
(default toFalse
).home
:user
home (default to/home/{{ user }}
)working_dir
: Pool working directory (default to/tmp
).socket
: PHP-fpm socket path (default to/var/run/php7.0-fpm-{{ key }}.sock
)listen_owner
: Socket listen owner (default towww-data
).listen_group
: Socket listen group (default towww-data
).servers
: Servers to start (default to2
).max_children
Maximum child servers (default to5
).min_spare_servers
: Minimum spare servers (default to1
).max_spare_servers
: Maximum spare servers (default to3
).request_terminate_timeout
: Maximum request time before timeout (default to300
).
base_php_packages
: Required packages to install (see defaults).php_memory_limit
: PHP memory limit (default to128M
).php_max_execution_time
: PHP max execution time (default to300
).php_smtp_host
: SMTP host (default tolocalhost
).php_smtp_port
: SMTP port (default to25
).php_sendmail_path
: Sendmail command (default to/usr/sbin/sendmail -t -i
).
- hosts: localhost
vars:
php_pools:
example:
user: example
roles:
- ovv.php7
MIT