DoSomething.web
DoSomething Web
DoSomething.org Web server.
Role Variables
Composer
Composer path
A path to install composer.
Defaults to /usr/local/bin.
composer_path: '/usr/bin'
Composer self update
Run composer self-update.
Defaults to no.
composer_self_update: yes
PHP
php.ini settings
You can override /etc/php5/fpm/php.ini settings
(or introduce new configuration statements) using the following format:
php_ini_settings:
- section: PHP
option: upload_max_filesize
value: 10M
- section: PHP
option: display_errors
value: "On"
- section: Date
option: date.timezone
value: "America/New_York"
FPM Pool
You can override /etc/php5/fpm/pool.d/www.conf settings
(or introduce new configuration statements) using the following format:
php_fpm_settings:
- { option: user, value: "app" }
- { option: group, value: "app" }
FPM Listen
A path to PHP-fpm socket or an address to bind server to.
Defaults to /var/run/php5-fpm.sock.
php_fpm_listen: /var/run/php5-fpm.sock
PHP Extensions
By default, only php5-curl is installed. To include additional extensions,
override php_extensions:
php_extensions:
- php5-mysql
- php5-gd
PHP Third Party Extensions
New Relic
Install PHP New Relic
extension and the system deamon.
Defaults to no.
php_thirdparty_newrelic: yes
Setup New Relic license.
40-character hexadecimal string provided by New Relic.
Defaults to an empty string.
php_thirdparty_newrelic_license: "your_license"
Dependencies
Example Playbook
Usage example:
- hosts: servers
roles:
- { role: dosomething.web, php_thirdparty_newrelic: yes }
License
MIT
ansible-galaxy install DoSomething.web