Skip to content

Commit

Permalink
Use php-dev.ini file for any PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
rhea-machine committed Aug 13, 2019
1 parent f0e40c5 commit 20d9da1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ This project try to follows [Semantic Versioning](http://semver.org/) since the

For migration information, you can always have a look at https://liip-drifter.readthedocs.io/en/latest/migrations.html.

## Unreleased

### Changed

- PHP role: add the custom php-dev.ini for all PHP versions and all OS

## [2.0.4] - 2019-07-08

### Changed
Expand Down
14 changes: 12 additions & 2 deletions provisioning/roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,18 @@
become: yes
when: database_type|default(false) == 'postgresql'

- include: not-debian-7.0.yml
when: not (php_version_installed is version_compare('7.0', '>=') and ansible_distribution == 'Debian')
- name: Place PHP configuration files in place.
template: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=644
become: yes
with_items:
- { src: php.ini.j2, dest: "{{ etc_php_path }}/mods-available/php-dev.ini" }

- name: Activate PHP configuration files
command: "{{phpenmod}} {{ item }}"
with_items:
- php-dev
- imagick
become: yes

- name: set php alternative to the correct path
alternatives: name=php path={{ alternatives_php_path }}
Expand Down
12 changes: 0 additions & 12 deletions provisioning/roles/php/tasks/not-debian-7.0.yml

This file was deleted.

0 comments on commit 20d9da1

Please sign in to comment.