You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
829 B
27 lines
829 B
5 years ago
|
---
|
||
|
|
||
|
- include: ../httpd_common/handlers/main.yml
|
||
|
|
||
|
# We need to stop all the pools and then start them again
|
||
|
# because if we move one pool config from one version to another
|
||
|
# the sock might not be removed at the correct time, depending on the
|
||
|
# order of execution
|
||
|
- name: restart php-fpm
|
||
|
service: name=php-fpm state=stopped enabled=yes
|
||
|
notify: stop php-fpm-scl
|
||
|
|
||
|
- name: stop php-fpm-scl
|
||
|
service: name=php{{ item }}-php-fpm state=stopped enabled=yes
|
||
|
with_items: "{{ httpd_php_versions.keys() | list | difference([ 54 ]) }}"
|
||
|
notify: start php-fpm
|
||
|
|
||
|
- name: start php-fpm
|
||
|
service: name=php-fpm state=started enabled=yes
|
||
|
notify: start php-fpm-scl
|
||
|
|
||
|
- name: start php-fpm-scl
|
||
|
service: name=php{{ item }}-php-fpm state=started enabled=yes
|
||
|
with_items: "{{ httpd_php_versions.keys() | list | difference([ 54 ]) }}"
|
||
|
|
||
|
...
|