-
Notifications
You must be signed in to change notification settings - Fork 1
/
php.yml
63 lines (55 loc) · 1.53 KB
/
php.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
- name: oel 7.5 php build
remote_user: ulsprovision
hosts: phpclients
become: yes
tasks:
- name: install php and extensions
yum:
name:
- mod_php72w
- php72w-gd
- php72w-ldap
- php72w-mbstring
- php72w-mysql
- php72w-pear
- php72w-pdo
- php72w-soap
- php72w-intl
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'