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

Prepare support for PHP 7.1

parent 9c4891d7
No related branches found
No related tags found
No related merge requests found
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
- name: "Restart PHP-FPM" - name: "Restart PHP-FPM"
service: service:
name: '{{ phpFpmService|default("php7.0-fpm") }}' name: '{{ phpFpmService }}'
state: 'restarted' state: 'restarted'
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
- block: - block:
- include_tasks: 'variables.yml'
tags: 'always'
- import_tasks: php.yml - import_tasks: php.yml
- name: "Link PhpEnMod for PHP 5.3" - name: "Link PhpEnMod for PHP 5.3"
......
---
# file: roles/php/tasks/oci-7.1.yml
- debug: msg="OCI8 for PHP 7.1 not implemented yet"
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
when: php_version_main|default('7') != '7' when: php_version_main|default('7') != '7'
ignore_errors: true ignore_errors: true
# NOTE: If oauth is already installed and we install a new PHP 7 version then this fails and we need --force as well
- name: "PHP | Install PECL packages" - name: "PHP | Install PECL packages"
shell: 'pecl install --soft oauth' shell: 'pecl install --soft --force oauth'
when: php_version_main|default('7') == '7' when: php_version_main|default('7') == '7'
ignore_errors: true ignore_errors: true
...@@ -158,7 +159,7 @@ ...@@ -158,7 +159,7 @@
- block: - block:
- set_fact: - set_fact:
phpLogRotatePrefix='7.0' phpLogRotatePrefix='{{php_version|default("7.0")}}'
phpLibPrefix='' phpLibPrefix=''
when: php_version_main|default('7') == '7' when: php_version_main|default('7') == '7'
- set_fact: - set_fact:
......
---
# file: roles/php/tasks/variables.yml
- block:
- set_fact: phpFpmService='php5-fpm'
- set_fact: phpFpmService='php-fpm'
when: php_version_main|default('7') == '5'
- set_fact: phpFpmService='php{{php_version|default("7.0")}}-fpm'
when: php_version_main|default('7') == '7'
tags: 'always'
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