-
Notifications
You must be signed in to change notification settings - Fork 1
/
php-default.yml
64 lines (56 loc) · 1.55 KB
/
php-default.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
- name: RHEL default PHP distro for legacy applications
remote_user: ulsprovision
hosts: php5
become: yes
tasks:
- name: install php and extensions
yum:
name:
- mod_php
- php-gd
- php-ldap
- php-mbstring
- php-mysql
- php-pear
- php-pdo
- php-soap
- php-intl
- php-xml
state: present
#all builds with php
- name: install mariadb
yum:
name:
- mariadb
state: present
- name: set up PHP max execution time
lineinfile:
create: yes
path: /etc/php.d/zzz_local.ini
state: present
regexp: 'max_execution_time.*'
line: 'max_execution_time = 300'
- name: set up PHP max post size
lineinfile:
path: /etc/php.d/zzz_local.ini
state: present
regexp: 'post_max_size.*'
line: 'post_max_size = 256M'
- name: set up PHP max upload size
lineinfile:
path: /etc/php.d/zzz_local.ini
state: present
regexp: 'upload_max_filesize.*'
line: 'upload_max_filesize = 256M'
- name: set up PHP timezone
lineinfile:
path: /etc/php.d/zzz_local.ini
state: present
regexp: 'date.timezone.*'
line: 'date.timezone = America/New_York'
- name: suppress production PHP errors
lineinfile:
path: /etc/php.d/zzz_local.ini
state: present
regexp: 'error_reporting.*'
line: 'error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING'