Fixes #92: Add a default pool.d/www.conf for FPM source install.

This commit is contained in:
Jeff Geerling 2016-03-06 21:06:46 -06:00
parent f195d7ec9a
commit 38a87f2d23
2 changed files with 21 additions and 0 deletions

12
files/www.conf Normal file
View File

@ -0,0 +1,12 @@
[www]
listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1
user = www-data
group = www-data
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 5
pm.max_requests = 500

View File

@ -9,6 +9,15 @@
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
when: php_fpm_pool_conf_path is not defined
- name: Ensure the default pool exists.
copy:
src: www.conf
dest: "{{ php_fpm_pool_conf_path }}"
owner: root
group: root
mode: 0644
force: no
- name: Configure php-fpm pool (if enabled).
lineinfile:
dest: "{{ php_fpm_pool_conf_path }}"