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
b9966c50
Commit
b9966c50
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Install mcrypt for PHP 7.2
parent
31e1486c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
tasks/mcrypt-7.2.yml
+43
-0
43 additions, 0 deletions
tasks/mcrypt-7.2.yml
tasks/php.yml
+4
-0
4 additions, 0 deletions
tasks/php.yml
with
48 additions
and
0 deletions
defaults/main.yml
+
1
−
0
View file @
b9966c50
...
...
@@ -48,6 +48,7 @@ php_max_file_uploads: 20
php_max_input_time
:
60
php_max_input_vars
:
1000
php_memory_limit
:
32M
php_needs_mcrypt
:
no
php_needs_msodbc
:
no
php_needs_oci8
:
no
php_output_buffering
:
4096
...
...
This diff is collapsed.
Click to expand it.
tasks/mcrypt-7.2.yml
0 → 100644
+
43
−
0
View file @
b9966c50
---
# file: roles/php/tasks/mcrypt-7.2.yml
-
name
:
Check MCrypt Requirement
stat
:
path
:
/usr/lib/php/20170718/mcrypt.so
register
:
mcrypt_file
-
block
:
-
name
:
Enable MCrypt for PHP
copy
:
content
:
extension={{ item }}.so
dest
:
/etc/{{ php_base_dir }}/{{ php_conf_dir }}/{{ item }}.ini
owner
:
root
group
:
root
mode
:
0644
with_items
:
-
mcrypt
-
name
:
Install packages
apt
:
pkg
:
'
{{
packages
}}'
state
:
present
update_cache
:
yes
vars
:
packages
:
-
libmcrypt-dev
-
libreadline-dev
-
name
:
Install PECL packages
shell
:
pecl install --soft --ignore-errors mcrypt-1.0.1
when
:
php_version_main|default(7) ==
7
ignore_errors
:
yes
-
name
:
Enable extension
shell
:
phpenmod {{ item }}
with_items
:
-
mcrypt
notify
:
-
Restart Apache
when
:
not mcrypt_file.stat.exists
This diff is collapsed.
Click to expand it.
tasks/php.yml
+
4
−
0
View file @
b9966c50
...
...
@@ -111,6 +111,10 @@
include_tasks
:
oci-{{ php_version|default('5.5') }}.yml
when
:
repository is defined and php_needs_oci8
-
name
:
Include mcrypt
include_tasks
:
mcrypt-7.2.yml
when
:
php_version|default('5.5') == '7.2' and php_needs_mcrypt
-
name
:
Import msodbc
import_tasks
:
msodbc.yml
when
:
php_needs_msodbc
...
...
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