diff --git a/handlers/main.yml b/handlers/main.yml index 10f735b..002277b 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -7,6 +7,6 @@ - name: restart php-fpm service: - name: php-fpm + name: "{{ php_fpm_daemon }}" state: restarted when: php_enable_php_fpm diff --git a/vars/Debian.yml b/vars/Debian.yml index 3bc271d..40530bc 100644 --- a/vars/Debian.yml +++ b/vars/Debian.yml @@ -2,6 +2,7 @@ php_conf_path: /etc/php5/apache2 php_extension_conf_path: /etc/php5/apache2/conf.d php_apc_conf_filename: 20-apc.ini +php_fpm_daemon: php5-fpm __php_packages: - php5 - libapache2-mod-php5 diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 571e1e6..2d125d3 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -2,6 +2,7 @@ php_conf_path: /etc php_extension_conf_path: /etc/php.d php_apc_conf_filename: apc.ini +php_fpm_daemon: php-fpm __php_packages: - ImageMagick - php