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
1c7a99a6
Commit
1c7a99a6
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/zehnder#317 Add MS ODBC driver to PHP role as an optional package
parent
0dca9404
No related branches found
Branches containing commit
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/msodbc.yml
+52
-0
52 additions, 0 deletions
tasks/msodbc.yml
tasks/php.yml
+4
-0
4 additions, 0 deletions
tasks/php.yml
with
57 additions
and
0 deletions
defaults/main.yml
+
1
−
0
View file @
1c7a99a6
...
...
@@ -46,6 +46,7 @@ php_max_file_uploads: '20'
php_max_input_time
:
'
60'
php_max_input_vars
:
'
1000'
php_memory_limit
:
'
32M'
php_needs_msodbc
:
false
php_needs_oci8
:
false
php_output_buffering
:
'
4096'
php_post_max_size
:
'
32M'
...
...
This diff is collapsed.
Click to expand it.
tasks/msodbc.yml
0 → 100644
+
52
−
0
View file @
1c7a99a6
---
# file: roles/php/tasks/msodbc.yml
-
name
:
"
Apt
Key"
apt_key
:
url
:
'
https://packages.microsoft.com/keys/microsoft.asc'
state
:
'
present'
-
name
:
"
Apt
Repository"
apt_repository
:
repo
:
'
deb
[arch=amd64]
https://packages.microsoft.com/ubuntu/16.04/prod
{{
ansible_distribution_release
}}
main'
state
:
'
present'
mode
:
'
644'
-
name
:
"
Install
Packages"
apt
:
pkg
:
'
{{
item
}}'
state
:
'
installed'
update_cache
:
yes
with_items
:
-
'
msodbcsql'
-
'
mssql-tools'
-
'
unixodbc-dev'
notify
:
-
"
Apache
|
Restart
Apache"
-
name
:
"
PHP
|
Install
PECL
packages"
shell
:
'
pecl
install
{{
item
}}'
with_items
:
-
'
sqlsrv'
-
'
pdo_sqlsrv'
-
name
:
"
Configuration
files"
copy
:
content
:
'
extension={{
item
}}.so'
dest
:
'
/etc/{{
php_base_dir
}}/{{
php_conf_dir
}}/{{
item
}}.ini'
owner
:
'
root'
group
:
'
root'
mode
:
'
644'
with_items
:
-
'
sqlsrv'
-
'
pdo_sqlsrv'
notify
:
-
"
Apache
|
Restart
Apache"
-
name
:
"
Enable
extensions"
shell
:
'
phpenmod
{{
item
}}'
with_items
:
-
'
sqlsrv'
-
'
pdo_sqlsrv'
notify
:
-
"
Apache
|
Restart
Apache"
This diff is collapsed.
Click to expand it.
tasks/php.yml
+
4
−
0
View file @
1c7a99a6
...
...
@@ -111,6 +111,10 @@
when
:
repository is defined and php_needs_oci8
tags
:
'
always'
-
include_tasks
:
msodbc.yml
when
:
php_needs_msodbc
tags
:
'
always'
-
name
:
"
PHP
|
Ensure
ImageMagick
config
directory"
file
:
dest={{ php_imagick_config_dir }}
...
...
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