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
090ebcf9
Commit
090ebcf9
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Properly compare integer default values
parent
12483dc1
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
tasks/php.yml
+5
-5
5 additions, 5 deletions
tasks/php.yml
tasks/variables.yml
+2
-2
2 additions, 2 deletions
tasks/variables.yml
templates/etc-php5-apache2-php.ini
+2
-2
2 additions, 2 deletions
templates/etc-php5-apache2-php.ini
with
9 additions
and
9 deletions
tasks/php.yml
+
5
−
5
View file @
090ebcf9
...
@@ -22,13 +22,13 @@
...
@@ -22,13 +22,13 @@
-
name
:
Install PECL packages
-
name
:
Install PECL packages
shell
:
pecl install --soft imagick-3.3.0
shell
:
pecl install --soft imagick-3.3.0
when
:
php_version_main|default(
'7'
) !=
'7'
when
:
php_version_main|default(
7
) !=
7
ignore_errors
:
yes
ignore_errors
:
yes
# NOTE: If oauth is already installed and we install a new PHP 7 version then this fails and we need --force as well
# NOTE: If oauth is already installed and we install a new PHP 7 version then this fails and we need --force as well
-
name
:
Install PECL packages
-
name
:
Install PECL packages
shell
:
pecl install --soft --force oauth
shell
:
pecl install --soft --force oauth
when
:
php_version_main|default(
'7'
) ==
'7'
when
:
php_version_main|default(
7
) ==
7
ignore_errors
:
yes
ignore_errors
:
yes
-
name
:
Ensure Apache config directory
-
name
:
Ensure Apache config directory
...
@@ -159,19 +159,19 @@
...
@@ -159,19 +159,19 @@
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
0644
when
:
(php_version_main|default(
'7'
) ==
'7'
) and (jailkit is not defined or not jailkit) and (php_fpm)
when
:
(php_version_main|default(
7
) ==
7
) and (jailkit is not defined or not jailkit) and (php_fpm)
-
block
:
-
block
:
-
name
:
Set facts for PHP
7
-
name
:
Set facts for PHP
7
set_fact
:
set_fact
:
phpLogRotatePrefix
:
'
{{php_version|default("7.0")}}'
phpLogRotatePrefix
:
'
{{php_version|default("7.0")}}'
phpLibPrefix
:
'
'
phpLibPrefix
:
'
'
when
:
php_version_main|default(
'7'
) ==
'7'
when
:
php_version_main|default(
7
) ==
7
-
name
:
Set facts for PHP
5
-
name
:
Set facts for PHP
5
set_fact
:
set_fact
:
phpLogRotatePrefix
:
'
5'
phpLogRotatePrefix
:
'
5'
phpLibPrefix
:
'
5'
phpLibPrefix
:
'
5'
when
:
php_version_main|default(
'7'
) !=
'7'
when
:
php_version_main|default(
7
) !=
7
-
name
:
Install logrotate script
-
name
:
Install logrotate script
template
:
template
:
...
...
This diff is collapsed.
Click to expand it.
tasks/variables.yml
+
2
−
2
View file @
090ebcf9
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
-
name
:
Set facts for PHP
5
-
name
:
Set facts for PHP
5
set_fact
:
set_fact
:
phpFpmService
:
php-fpm
phpFpmService
:
php-fpm
when
:
php_version_main|default(
'7'
) ==
'5'
when
:
php_version_main|default(
7
) ==
5
-
name
:
Set facts for PHP
7
-
name
:
Set facts for PHP
7
set_fact
:
set_fact
:
phpFpmService
:
php{{php_version|default("7.0")}}-fpm
phpFpmService
:
php{{php_version|default("7.0")}}-fpm
when
:
php_version_main|default(
'7'
) ==
'7'
when
:
php_version_main|default(
7
) ==
7
tags
:
tags
:
-
always
-
always
This diff is collapsed.
Click to expand it.
templates/etc-php5-apache2-php.ini
+
2
−
2
View file @
090ebcf9
...
@@ -1970,7 +1970,7 @@ ldap.max_links = -1
...
@@ -1970,7 +1970,7 @@ ldap.max_links = -1
[Syslog]
[Syslog]
define_syslog_variables
=
Off
define_syslog_variables
=
Off
{%
if
php_version|default(
'
5.5
'
)
==
'
5.3
'
%}
{%
if
php_version|default(5.5)
==
5.3
%}
[apc]
[apc]
extension
=
apc.so
extension
=
apc.so
apc.rfc1867
=
{{ apc_rfc1867 }}
apc.rfc1867
=
{{ apc_rfc1867 }}
...
@@ -1988,7 +1988,7 @@ extension=imagick.so
...
@@ -1988,7 +1988,7 @@ extension=imagick.so
extension
=
xmlrpc.so
extension
=
xmlrpc.so
{%
endif
%}
{%
endif
%}
{%
if
php_version_main|default(
'7'
)
==
'7'
%}
{%
if
php_version_main|default(
7
)
==
7
%}
[oauth]
[oauth]
extension
=
oauth.so
extension
=
oauth.so
{%
endif
%}
{%
endif
%}
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