mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-09-28 04:09:24 +02:00
Initial commit of meta, tasks, templates, and vars.
This commit is contained in:
parent
e64fd9ac81
commit
bf3f28ce77
4
meta/main.yml
Normal file
4
meta/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
# TODO: Figure out a better way to make this dependency not required.
|
||||||
|
- { role: apache }
|
13
tasks/main.yml
Normal file
13
tasks/main.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
# PHP.
|
||||||
|
- name: Ensure PHP packages are installed.
|
||||||
|
yum: name={{ item }} state=installed enablerepo={{ php_enablerepo }}
|
||||||
|
with_items: php_packages
|
||||||
|
notify: restart apache
|
||||||
|
|
||||||
|
- name: Place PHP configuration files in place.
|
||||||
|
template: src={{ item.src }} dest={{ item.dest }} owner=root group=root mode=644
|
||||||
|
with_items:
|
||||||
|
- { src: php.ini.j2, dest: /etc/php.ini }
|
||||||
|
- { src: apc.ini.j2, dest: /etc/php.d/php.ini }
|
||||||
|
notify: restart apache
|
4
templates/apc.ini.j2
Normal file
4
templates/apc.ini.j2
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apc.shm_size={{ php_apc_shm_size }}
|
||||||
|
apc.enable_cli=0
|
||||||
|
apc.rfc1867=1
|
||||||
|
apc.cache_by_default={{ php_apc_cache_by_default }}
|
1797
templates/php.ini.j2
Normal file
1797
templates/php.ini.j2
Normal file
File diff suppressed because it is too large
Load Diff
24
vars/main.yml
Normal file
24
vars/main.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
# Pass in a comma-separated list of repos to use (e.g. "remi,epel").
|
||||||
|
php_enablerepo: ""
|
||||||
|
php_memory_limit: "256M"
|
||||||
|
php_max_execution_time: "60"
|
||||||
|
php_upload_max_filesize: "64M"
|
||||||
|
php_apc_cache_by_default: "1"
|
||||||
|
php_apc_shm_size: "96M"
|
||||||
|
php_date_timezone: "America/Chicago"
|
||||||
|
php_packages:
|
||||||
|
- ImageMagick
|
||||||
|
- php
|
||||||
|
- php-cli
|
||||||
|
- php-common
|
||||||
|
- php-devel
|
||||||
|
- php-gd
|
||||||
|
- php-imap
|
||||||
|
- php-ldap
|
||||||
|
- php-mbstring
|
||||||
|
- php-pdo
|
||||||
|
- php-pear
|
||||||
|
- php-pecl-apc
|
||||||
|
- php-xml
|
||||||
|
- php-xmlrpc
|
Loading…
Reference in New Issue
Block a user