Newer
Older
---
- name: "Memory limit from 128M to {{ php_memory }} for PHP{{ php_version }}"
lineinfile:
line: "memory_limit = {{ php_memory }}"
regexp: "^memory_limit"
path: "{{ php_ini_file }}"
state: present
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
- 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: "pm.max_children {{ php_pm_max_children }} for PHP{{ php_version }}"
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
lineinfile:
line: "pm.max_children = {{ php_pm_max_children }}"
regexp: "^pm\\.max_children"
path: "{{ php_www_conf_file }}"
state: present
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
- name: "max pm.start_servers {{ php_pm_start_servers }} for PHP{{ php_version }}"
lineinfile:
line: "pm.start_servers = {{ php_pm_start_servers }}"
regexp: "^pm\\.start_servers"
path: "{{ php_www_conf_file }}"
state: present
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
- name: "max pm.min_spare_servers {{ php_pm_min_spare_servers }} for PHP{{ php_version }}"
lineinfile:
line: "pm.min_spare_servers = {{ php_pm_min_spare_servers }}"
regexp: "^pm\\.min_spare_servers"
path: "{{ php_www_conf_file }}"
state: present
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
- name: "max pm.max_spare_servers {{ php_pm_max_spare_servers }} for PHP{{ php_version }}"
lineinfile:
line: "pm.max_spare_servers = {{ php_pm_max_spare_servers }}"
regexp: "^pm\\.max_spare_servers"
path: "{{ php_www_conf_file }}"
state: present
notify: reload php-fpm php7_fpm
tags:
- confphpfpm
- name: "uplaod_max_filesize limit from 2M to {{ php_upload_max_filesize }} for PHP{{ php_version }}"
lineinfile:
line: "upload_max_filesize = {{ php_upload_max_filesize }}"
regexp: "^upload_max_filesize"
path: "{{ php_ini_file }}"
state: present
notify: reload php-fpm php7_fpm
tags: