Skip to content
Snippets Groups Projects
Commit 9a9898f8 authored by jurgenhaas's avatar jurgenhaas
Browse files

Restart Apache (if present) from role PHP when needed

parent 3cbfdaf2
No related branches found
No related tags found
No related merge requests found
php_called_from_apache: false
php_needs_oci8: false
php_conf_dir: 'conf.d'
php_allow_call_time_pass_reference: 'on'
......
---
# file: roles/php/handlers/php.yml
- name: "PHP | Restart Apache"
debug: msg="Need to restart Apache server"
when: php_called_from_apache
changed_when: php_called_from_apache
notify:
- "Apache | Restart Apache"
......@@ -18,6 +18,8 @@
- php5-xdebug
- php5-dev
- php-pear
notify:
- "PHP | Restart Apache"
# TODO: Upgrade APCu on Ubuntu 14.04
# @see https://github.com/owncloud/core/issues/14175#issuecomment-74573088
......@@ -31,6 +33,8 @@
owner=root
group=root
mode=0644
notify:
- "PHP | Restart Apache"
- name: "PHP | Cache configuration file, apc.ini"
template:
......@@ -39,6 +43,8 @@
owner=root
group=root
mode=0644
notify:
- "PHP | Restart Apache"
- name: "PHP | Create extra directory for browscap"
file:
......@@ -55,6 +61,8 @@
owner=root
group=root
when: php_browscap
notify:
- "PHP | Restart Apache"
- name: "PHP | Enable PHP modules"
shell: php5enmod {{ item }}
......@@ -62,6 +70,8 @@
- mcrypt
- imap
when: php_conf_dir == 'mods-available'
notify:
- "PHP | Restart Apache"
- name: "PHP | Create htdocs directory for apc status"
file:
......@@ -83,6 +93,8 @@
when: php_needs_oci8
ignore_errors: yes
changed_when: oci_available.stdout != '/usr/lib/php5/20090626/pdo_oci.so'
notify:
- "PHP | Restart Apache"
- include: oci.yml
when: repository is defined and php_needs_oci8 and oci_available.stdout != '/usr/lib/php5/20090626/pdo_oci.so'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment