service et php5-fpm reload

This commit is contained in:
Michael RICOIS 2017-03-20 10:54:45 +01:00
parent f87efd6f89
commit 0fc5dd69d6
7 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,5 @@
---
- name: BACKOFFICE | Restart PHP-FPM
become: yes
command: "service php5-fpm restart"
service: name=php5-fpm state=reloaded
when: opcache is defined and opcache == "fcgi"

View File

@ -1,4 +1,5 @@
---
- name: ENRICHISSEMENT | Restart PHP-FPM
become: yes
command: "service php5-fpm restart"
service: name=php5-fpm state=reloaded
when: opcache is defined and opcache == "fcgi"

View File

@ -1,5 +1,5 @@
---
- name: Intranet | Restart PHP-FPM
become: yes
command: "service php5-fpm restart"
service: name=php5-fpm state=reloaded
when: opcache is defined and opcache == "fcgi"

View File

@ -32,7 +32,7 @@
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
roles:

View File

@ -32,7 +32,7 @@
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
#ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-tasks.yml"
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
roles:

View File

@ -1 +1 @@
172.19.8.13
172.19.8.13 opcache=fcgi

View File

@ -0,0 +1,5 @@
---
- name: ODEA | Restart PHP-FPM
become: yes
service: name=php5-fpm state=reloaded
when: opcache is defined and opcache == "fcgi"