# Role: php

## Description

Installs and configures `php` and `php-fpm`.

https://www.php.net/

## Usage

Using in a playbook:

```yaml
- name: Play
  gather_facts: true
  gather_subset:
    - distribution
  hosts:
    - all
  roles:
    - samuliy.ansible.php
  vars:
    ...
```

### Vars

`php_error_log`:

Error log configuration value.

`php_error_reporting`:

Error reporting configuration value.

`php_fpm_emergency_restart_interval`:

PHP-FPM emergency restart interval.

`php_fpm_emergency_restart_threshold`:

PHP-FPM emergency restart threshold.

`php_fpm_error_log`:

PHP-FPM error logging configuration value.

`php_fpm_log_level`:

PHP-FPM logging level.

`php_fpm_log_limit`:

PHP-FPM logging limit.

`php_fpm_pm`:

PHP-FPM pm configuration value.

`php_fpm_pm_max_children`:

PHP-FPM pm max children configuration value.

`php_fpm_pm_max_spare_servers`:

PHP-FPM pm max spare servers configuration value.

`php_fpm_pm_min_spare_servers`:

PHP-FPM pm min spare servers configuration value.

`php_fpm_pm_start_servers`:

PHP-FPM pm min start servers configuration value.

`php_fpm_process_control_timeout`:

PHP-FPM process control timeout.

`php_max_post_size`:

PHP max POST size configuration value.

`php_memory_limit`:

PHP memory limit configuration value.

`php_minimum_version`:

Minimum version of PHP to require.

`php_sendmail_path`:

PHP sendmail path for sending mail from PHP scripts.
