Installs php5-fpm on Debian/Ubuntu linux servers.
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
php5_fpm_pools:
- name: 'live'
user: 'live'
prefix: '/var/www/live/current'
tmp_path: '/var/www/live/tmp'
sessions_path: '/var/www/live/sessions'
releases_path: '/var/www/live/releases'
shared_path: '/var/www/live/shared'
logs_path: '/var/www/live/logs'
project_paths:
- '/var/www/live/shared/media'
- '/var/www/live/shared/var'
php_admin_value:
error_log: 'logs/php_errors.log'
max_input_vars: 5000
max_execution_time: 300
memory_limit: '256M'
- name: 'staging'
user: 'staging'
pm: ondemand
pm_max_children: 2
prefix: '/var/www/staging/current'
tmp_path: '/var/www/staging/tmp'
sessions_path: '/var/www/staging/sessions'
releases_path: '/var/www/staging/releases'
shared_path: '/var/www/staging/shared'
logs_path: '/var/www/staging/logs'
project_paths:
- '/var/www/staging/shared/media'
- '/var/www/staging/shared/var'
php_admin_value:
error_log: 'logs/php_errors.log'
max_input_vars: 5000
max_execution_time: 300
memory_limit: '256M'
To remove vhosts remove them entirely or set state: absent
php5_fpm_pools:
- name: 'live'
...
state: absent
Custom folders are created when defined in project_paths
php5_fpm_pools:
- name: 'live'
...
project_paths:
- '/var/www/live/shared/media'
- '/var/www/live/shared/var'
php_expose_php: "On"
php_memory_limit: "256M"
php_max_execution_time: "60"
php_max_input_time: "60"
php_max_input_vars: "1000"
php_realpath_cache_size: "32K"
php_realpath_cache_ttl: "120"
php_upload_max_filesize: "64M"
php_post_max_size: "32M"
php_date_timezone: "Europe/Berlin"
php_sendmail_path: "/usr/sbin/sendmail -t -i"
php_short_open_tag: false
php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT"
php_display_errors: "Off"
php_display_startup_errors: "Off"
php_apc_enabled_in_ini: true
apc_enabled: "1"
apc_shm_size: "256M"
apc_ttl: "7200"
apc_user_ttl: "7200"
apc_gc_ttl: "3600"
apc_cache_by_default: "1"
apc_filters: ""
apc_file_update_protection: "2"
apc_enable_cli: "0"
apc_max_file_size: "1M"
apc_stat: "1"
apc_include_once_override: "0"
php_opcache_enabled_in_ini: true
php_opcache_enable: "1"
php_opcache_enable_cli: "0"
php_opcache_memory_consumption: "96"
php_opcache_interned_strings_buffer: "16"
php_opcache_max_accelerated_files: "4096"
php_opcache_max_wasted_percentage: "5"
php_opcache_validate_timestamps: "1"
php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0"
None.
- hosts: server
roles:
- { role: tschifftner.php5-fpm }
Ansible | Debian Jessie | Ubuntu 14.04 | Ubuntu 12.04 |
---|---|---|---|
2.1 | Yes | Yes | Yes |