|
1 | 1 | # Ansible Role: PHP |
2 | 2 |
|
3 | | -[](https://travis-ci.org/geerlingguy/ansible-role-php) |
| 3 | +[](https://github.com/geerlingguy/ansible-role-php/actions?query=workflow%3ACI) |
4 | 4 |
|
5 | 5 | Installs PHP on RedHat/CentOS and Debian/Ubuntu servers. |
6 | 6 |
|
@@ -71,14 +71,22 @@ Control over the fpm daemon's state; set these to `stopped` and `false` if you w |
71 | 71 |
|
72 | 72 | The handler restarts PHP-FPM by default. Setting the value to `reloaded` will reload the service, intead of restarting it. |
73 | 73 |
|
74 | | - php_fpm_listen: "127.0.0.1:9000" |
75 | | - php_fpm_listen_allowed_clients: "127.0.0.1" |
76 | | - php_fpm_pm_max_children: 50 |
77 | | - php_fpm_pm_start_servers: 5 |
78 | | - php_fpm_pm_min_spare_servers: 5 |
79 | | - php_fpm_pm_max_spare_servers: 5 |
80 | 74 |
|
81 | | -Specific settings inside the default `www.conf` PHP-FPM pool. If you'd like to manage additional settings, you can do so either by replacing the file with your own template or using `lineinfile` like this role does inside `tasks/configure-fpm.yml`. |
| 75 | + php_fpm_pools: |
| 76 | + - pool_name: www |
| 77 | + pool_template: www.conf.j2 |
| 78 | + pool_listen: "127.0.0.1:9000" |
| 79 | + pool_listen_allowed_clients: "127.0.0.1" |
| 80 | + pool_pm: dynamic |
| 81 | + pool_pm_max_children: 5 |
| 82 | + pool_pm_start_servers: 2 |
| 83 | + pool_pm_min_spare_servers: 1 |
| 84 | + pool_pm_max_spare_servers: 3 |
| 85 | + pool_pm_max_requests: 500 |
| 86 | + |
| 87 | +List of PHP-FPM pool to create. By default, www pool is created. To setup a new pool, add an item to php_fpm_pools list. |
| 88 | + |
| 89 | +Specific settings inside the default `www.conf.j2` PHP-FPM pool. If you'd like to manage additional settings, you can do so either by replacing the file with your own template using `pool_template`. |
82 | 90 |
|
83 | 91 | ### php.ini settings |
84 | 92 |
|
|
0 commit comments