mirror of
https://github.com/geerlingguy/ansible-role-php-versions.git
synced 2024-11-25 10:55:10 +01:00
Fixes #14: PHP version 5.6 installs PHP 7.2 on Ubuntu.
This commit is contained in:
parent
7dbc4d6bcf
commit
21ed97ad51
@ -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.
|
||||
|
@ -1,3 +1,6 @@
|
||||
---
|
||||
# The PHP version to be installed.
|
||||
php_version: '7.1'
|
||||
|
||||
# For Debian OSes only.
|
||||
php_versions_install_recommends: no
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user