mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-02-17 01:21:29 +01:00
Fixes #92: Add a default pool.d/www.conf for FPM source install.
This commit is contained in:
parent
f195d7ec9a
commit
38a87f2d23
12
files/www.conf
Normal file
12
files/www.conf
Normal 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
|
@ -9,6 +9,15 @@
|
|||||||
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
|
php_fpm_pool_conf_path: "{{ __php_fpm_pool_conf_path }}"
|
||||||
when: php_fpm_pool_conf_path is not defined
|
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).
|
- name: Configure php-fpm pool (if enabled).
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ php_fpm_pool_conf_path }}"
|
dest: "{{ php_fpm_pool_conf_path }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user