Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
php
Commits
aaae9760
Commit
aaae9760
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Prepare support for PHP 7.1
parent
9c4891d7
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
handlers/main.yml
+1
-1
1 addition, 1 deletion
handlers/main.yml
tasks/main.yml
+3
-0
3 additions, 0 deletions
tasks/main.yml
tasks/oci-7.1.yml
+4
-0
4 additions, 0 deletions
tasks/oci-7.1.yml
tasks/php.yml
+3
-2
3 additions, 2 deletions
tasks/php.yml
tasks/variables.yml
+10
-0
10 additions, 0 deletions
tasks/variables.yml
with
21 additions
and
3 deletions
handlers/main.yml
+
1
−
1
View file @
aaae9760
...
...
@@ -3,5 +3,5 @@
-
name
:
"
Restart
PHP-FPM"
service
:
name
:
'
{{
phpFpmService
|default("php7.0-fpm")
}}'
name
:
'
{{
phpFpmService
}}'
state
:
'
restarted'
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
3
−
0
View file @
aaae9760
...
...
@@ -11,6 +11,9 @@
-
block
:
-
include_tasks
:
'
variables.yml'
tags
:
'
always'
-
import_tasks
:
php.yml
-
name
:
"
Link
PhpEnMod
for
PHP
5.3"
...
...
This diff is collapsed.
Click to expand it.
tasks/oci-7.1.yml
0 → 100644
+
4
−
0
View file @
aaae9760
---
# file: roles/php/tasks/oci-7.1.yml
-
debug
:
msg="OCI8 for PHP 7.1 not implemented yet"
This diff is collapsed.
Click to expand it.
tasks/php.yml
+
3
−
2
View file @
aaae9760
...
...
@@ -26,8 +26,9 @@
when
:
php_version_main|default('7') != '7'
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"
shell
:
'
pecl
install
--soft
oauth'
shell
:
'
pecl
install
--soft
--force
oauth'
when
:
php_version_main|default('7') == '7'
ignore_errors
:
true
...
...
@@ -158,7 +159,7 @@
-
block
:
-
set_fact
:
phpLogRotatePrefix='
7.0
'
phpLogRotatePrefix='
{{php_version|default("7.0")}}
'
phpLibPrefix=''
when
:
php_version_main|default('7') == '7'
-
set_fact
:
...
...
This diff is collapsed.
Click to expand it.
tasks/variables.yml
0 → 100644
+
10
−
0
View file @
aaae9760
---
# 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'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment