Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Compile PHP modules in version specific directories
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Apr 22, 2017
1 parent 3810705 commit e84af01
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
23 changes: 0 additions & 23 deletions provisioning/roles/drupalvm.php-versions/tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,3 @@
- "{{ php_packages|regex_replace('php' + php_version, 'php5.6') }}"
- "{{ php_packages|regex_replace('php' + php_version, 'php7.0') }}"
- "{{ php_packages|regex_replace('php' + php_version, 'php7.1') }}"
register: php_purge

- name: Purge PHP packages installed by default.
apt:
name: "{{ item }}"
state: absent
purge: yes
force: yes
when: >
php_purge.changed or
php_ondrej_ubuntu_repo.changed or
php_ondrej_debian_repo.changed
with_items:
- php-common

- name: Purge PHP modules directory.
file:
path: "{{ item }}"
state: absent
when: php_purge.changed
with_items:
- "/usr/lib/php5/modules"
- "/usr/lib/php/modules"
5 changes: 5 additions & 0 deletions provisioning/roles/drupalvm.php-versions/vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ php_redis_package: "php{{ php_version }}-redis"
php_memcached_package: "php{{ php_version }}-memcached"
php_pgsql_package: "php{{ php_version }}-pgsql"

php_tideways_module_path: "/usr/lib/php/{{ php_version }}/modules"
php_uploadprogress_module_path: "/usr/lib/php/{{ php_version }}/modules"
php_xdebug_module_path: "/usr/lib/php/{{ php_version }}/modules"
php_xhprof_module_path: "/usr/lib/php/{{ php_version }}/modules"

php_packages:
- "php{{ php_version }}"
- "php{{ php_version }}-apcu"
Expand Down
4 changes: 4 additions & 0 deletions provisioning/roles/drupalvm.php-versions/vars/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
---
php_tideways_module_path: "/usr/lib64/php{{ php_version }}/modules"
php_uploadprogress_module_path: "/usr/lib64/php{{ php_version }}/modules"
php_xdebug_module_path: "/usr/lib64/php{{ php_version }}/modules"
php_xhprof_module_path: "/usr/lib64/php{{ php_version }}/modules"
2 changes: 1 addition & 1 deletion provisioning/tasks/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
path: "/root/php{{ php_version }}"
state: directory
mode: 0775
tags: ['php', 'xdebug']
tags: ['xdebug']

0 comments on commit e84af01

Please sign in to comment.