mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-14 10:25:24 +01:00
Merge pull request #300 from rsicart/feature/php-fpm-allow-reload
Added possibility to choose if php-fpm is restarted or reloaded.
This commit is contained in:
commit
1368009e06
@ -67,6 +67,10 @@ If you're using Apache, you can easily get it configured to work with PHP-FPM us
|
||||
|
||||
Control over the fpm daemon's state; set these to `stopped` and `false` if you want FPM to be installed and configured, but not running (e.g. when installing in a container).
|
||||
|
||||
php_fpm_handler_state: restarted
|
||||
|
||||
The handler restarts PHP-FPM by default. Setting the value to `reloaded` will reload the service, intead of restarting it.
|
||||
|
||||
php_fpm_listen: "127.0.0.1:9000"
|
||||
php_fpm_listen_allowed_clients: "127.0.0.1"
|
||||
php_fpm_pm_max_children: 50
|
||||
|
@ -22,6 +22,7 @@ php_enable_webserver: true
|
||||
# PHP-FPM configuration.
|
||||
php_enable_php_fpm: false
|
||||
php_fpm_state: started
|
||||
php_fpm_handler_state: restarted
|
||||
php_fpm_enabled_on_boot: true
|
||||
php_fpm_listen: "127.0.0.1:9000"
|
||||
php_fpm_listen_allowed_clients: "127.0.0.1"
|
||||
|
@ -9,7 +9,7 @@
|
||||
- name: restart php-fpm
|
||||
service:
|
||||
name: "{{ php_fpm_daemon }}"
|
||||
state: restarted
|
||||
state: "{{ php_fpm_handler_state }}"
|
||||
when:
|
||||
- php_enable_php_fpm
|
||||
- php_fpm_state == 'started'
|
||||
|
Loading…
Reference in New Issue
Block a user