-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.yml
173 lines (163 loc) · 4.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
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
53
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---
php_version: 7.4.25
php_reinstall: false
php_download_url: "https://github.com/php/php-src/archive/refs/tags/php-{{ php_version }}.tar.gz"
# Files & Paths
php_download_dir: "/usr/src/php_{{ php_version }}"
php_install_dir: "/usr/local/php{{ php_version.split('.') | first }}"
php_include_ini_dir: "{{ php_install_dir }}/lib"
php_include_ini_scan_dir: "{{ php_include_ini_dir }}/php-ini.d"
php_unit_file_dir: "/lib/systemd/system/"
php_pid_file: /run/php-fpm.pid
php_max_execution_time: 30
php_max_input_time: 60
php_max_input_nesting_level: 64
php_max_input_vars: 1000
php_memory_limit: 128M
php_upload_max_filesize: 2M
php_max_file_uploads: 20
php_post_max_size: 8M
php_ini_configuration_template:
src: php.ini.j2
dest: "{{ php_include_ini_dir }}/php.ini"
# Required libs & Compile options
php_make_jobs: "{{ ansible_processor_vcpus }}"
php_required_libs:
- autoconf
- automake
- make
- gcc
- g++
- bison
- flex
- libtool
- re2c
- libxml2-dev
- pkg-config
- libsqlite3-dev
- bzip2
- libbz2-dev
- zlib1g
- zlib1g-dev
- libjpeg-dev
- libjpeg62-turbo-dev
- libpng-dev
- libfreetype6-dev
- libgmp-dev
- libpspell-dev
- librecode-dev
- libonig-dev
- libssl-dev
- libmariadb-dev
- libcurl4-gnutls-dev
- libc-client-dev
- libkrb5-dev
- libreadline-dev
- libxslt-dev
- libzip-dev
- libmagickwand-dev
- apt-transport-https
- ca-certificates
php_compile_options:
- enable-bcmath
- enable-calendar
- enable-cli
- enable-ctype
- enable-dom
- enable-exif
- enable-fileinfo
- enable-filter
- enable-ftp
- enable-gd
- enable-intl
- enable-json
- enable-xml
- enable-mbstring
- enable-pcntl
- enable-pdo
- enable-posix
- enable-session
- enable-shmop
- enable-simplexml
- enable-soap
- enable-sockets
- enable-sysvmsg
- enable-sysvsem
- enable-sysvshm
- enable-tokenizer
- enable-simplexml
- enable-xmlreader
- enable-xmlwriter
- enable-opcache
- with-bz2=/usr
- with-curl=/usr
- with-gettext=/usr
- with-iconv
- with-imap
- with-imap-ssl
- with-kerberos
- with-mysqli
- with-openssl=yes
- with-pear
- with-pdo-mysql
- with-pdo-sqlite
- with-readline
- with-sqlite3
- with-xsl
- with-zip
- with-zlib-dir=/usr
- with-zlib=/usr
- with-jpeg
- with-freetype
- with-gmp
- with-pspell
- with-config-file-path="{{ php_include_ini_dir }}"
- with-config-file-scan-dir="{{ php_include_ini_scan_dir }}"
# FPM
php_fpm_install: false
php_fpm_configuration_template:
src: php-fpm.conf.j2
dest: "{{ php_install_dir }}/etc/php-fpm.conf"
php_fpm_service_configuration_template:
src: php-fpm.service.j2
dest: "{{ php_unit_file_dir }}/php-fpm.service"
php_fpm_configuration:
# alert, error, warning, notice, debug
log_level: notice
# 0 indicates no limit
process_max: 0
daemonize: "yes"
# process_priority: # Also available to be configured, check php-fpm.conf.j2
# rlimit_core: # Also available to be configured, check php-fpm.conf.j2
# rlimit_files: # Also available to be configured, check php-fpm.conf.j2
# Sample pool definition
# php_fpm_pool_definitions:
# www:
# user: www-data
# group: www-data
# listen: /run/php-fpm.sock
# listen.owner: www-data
# listen.group: www-data
# listen.mode: "0660"
# pm:
# type: dynamic
# max_children: 10
# start_servers: 2
# min_spare_servers: 2
# max_spare_servers: 4
php_fpm_service_enabled: false
php_fpm_service_started: started
# Composer
php_composer_install: false
php_composer_install_dir: /opt/composer
php_composer_link_path: /usr/local/bin/composer
php_composer_version: 2.0.11
php_composer_reinstall: false
php_composer_installer_path: /usr/src/composer-setup.php
php_composer_installer_url: https://getcomposer.org/installer
php_composer_sha384_url: https://composer.github.io/installer.sha384sum
# Pecl
php_pear_tmp_path: "/root/tmp"
php_pear_packages:
- { name: 'timezonedb', library: 'pecl/timezonedb', version: '2018.4', type: 'extension' }
- { name: 'imagick', library: 'pecl/imagick', version: '3.4.4', type: 'extension' }