Fixes #14: PHP version 5.6 installs PHP 7.2 on Ubuntu.

This commit is contained in:
Jeff Geerling 2018-05-09 20:52:06 -05:00
parent 7dbc4d6bcf
commit 21ed97ad51
3 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,10 @@ Available variables are listed below, along with default values (see `defaults/m
The PHP version to be installed. Any [currently-supported PHP major version](http://php.net/supported-versions.php) is a valid option (e.g. `5.6`, `7.0`, `7.1`, etc.
php_versions_install_recommends: no
(For Debian OSes only) Whether to install recommended packages. This is set to `no` by default because setting it to `yes` often leads to multiple PHP versions being installed (thus making a bit of a mess) when using repos like Ondrej's PHP PPA for Ubuntu.
## Dependencies
- geerlingguy.php is a soft dependency as the `php_version` variable is required to be set.

View File

@ -1,3 +1,6 @@
---
# The PHP version to be installed.
php_version: '7.1'
# For Debian OSes only.
php_versions_install_recommends: no

View File

@ -26,6 +26,10 @@
php_xhprof_module_path: __php_xhprof_module_path
php_packages: __php_packages
- name: Define php_install_recommends variable.
set_fact:
php_install_recommends: "{{ php_versions_install_recommends }}"
# Setup tasks.
- include_tasks: "setup-{{ ansible_os_family }}.yml"