Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pâquerette
Infrastructure
Ansible Pâquerette
Commits
3527ed8e
Commit
3527ed8e
authored
Jul 05, 2022
by
Pâquerette Instance
Browse files
Ajout des variable d'opcache
parent
5e8d5483
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/php7_fpm/defaults/main.yml
View file @
3527ed8e
...
...
@@ -4,4 +4,11 @@ php_memory: "512M"
php_pm_max_children
:
"
7"
php_pm_start_servers
:
"
2"
php_pm_min_spare_servers
:
"
1"
php_pm_max_spare_servers
:
"
3"
\ No newline at end of file
php_pm_max_spare_servers
:
"
3"
opcache_max_accelerated_files
:
"
10000"
opcache_interned_strings_buffer
:
"
16"
opcache_save_comments
:
"
1"
opcache_revalidate_freq
:
"
60"
composer_version
:
2.3.8
composer_sum
:
"
c6ab768ad3239c4d4cc4f39f8ff7462925e088cd441e5bdb749fbf6efe049769"
upload_max_filesize
:
"
2M"
roles/php7_fpm/tasks/composer.yml
View file @
3527ed8e
...
...
@@ -2,18 +2,11 @@
#
# thanks to https://www.devopsaurus.com/install-composer-with-ansible/
#
-
name
:
Validate Composer checksum
-
name
:
Download and install Composer
get_url
:
checksum
:
"
sha
384:906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8
"
checksum
:
"
sha
256:{{
composer_sum
}}
"
dest
:
/usr/src/
url
:
https://getcomposer.org/installer
-
name
:
Download and install Composer
shell
:
curl -sS https://getcomposer.org/installer | php
args
:
chdir
:
/usr/src/
creates
:
/usr/local/bin/composer
warn
:
false
url
:
https://getcomposer.org/download/{{ composer_version }}/composer.phar
-
name
:
Add Composer to global path
copy
:
...
...
roles/php7_fpm/tasks/configure_fpm.yml
View file @
3527ed8e
...
...
@@ -10,6 +10,56 @@
tags
:
-
confphpfpm
-
name
:
"
opcache.save_comments
to
{{
opcache_save_comments
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
opcache.save_comments
=
{{
opcache_save_comments
}}"
regexp
:
"
^opcache.save_comments"
path
:
"
{{
php_ini_file
}}"
state
:
present
notify
:
reload php-fpm php7_fpm
tags
:
-
confphpfpm
-
name
:
"
opcache.revalidate_freq
to
{{
opcache_revalidate_freq
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
opcache.revalidate_freq
=
{{
opcache_revalidate_freq
}}"
regexp
:
"
^opcache.revalidate_freq"
path
:
"
{{
php_ini_file
}}"
state
:
present
notify
:
reload php-fpm php7_fpm
tags
:
-
confphpfpm
-
name
:
"
opcache.max_accelerated_files
to
{{
opcache_max_accelerated_files
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
opcache.max_accelerated_files
=
{{
opcache_max_accelerated_files
}}"
regexp
:
"
^opcache.max_accelerated_files"
path
:
"
{{
php_ini_file
}}"
state
:
present
notify
:
reload php-fpm php7_fpm
tags
:
-
confphpfpm
-
name
:
"
opcache.interned_strings_buffer
to
{{
opcache_interned_strings_buffer
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
opcache.interned_strings_buffer
=
{{
opcache_interned_strings_buffer
}}"
regexp
:
"
^opcache.max_accelerated_files"
path
:
"
{{
php_ini_file
}}"
state
:
present
notify
:
reload php-fpm php7_fpm
tags
:
-
confphpfpm
-
name
:
"
upload_max_filesize
to
{{
upload_max_filesize
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
upload_max_filesize
=
{{
upload_max_filesize
}}"
regexp
:
"
^upload_max_filesize"
path
:
"
{{
php_ini_file
}}"
state
:
present
notify
:
reload php-fpm php7_fpm
tags
:
-
confphpfpm
-
name
:
"
max
children
pm.max_children
{{
php_pm_max_children
}}
for
PHP{{
php_version
}}"
lineinfile
:
line
:
"
pm.max_children
=
{{
php_pm_max_children
}}"
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment