Fixes #158 - Test failing on Ubuntu 12.04 due to missing PPA (#159)

* Fixes #158: Switch to ondrej/php repo since php5-5.6 is dead.

* Issue #158: Don't install recommended packages, to prevent PHP 7 default.

* Issue #158: Don't install php-pear on 1204, to prevent PHP 7 default.

* Issue #158: Update PHP package names.

* Issue #158: Update PHP paths for Ubuntu 12.04.

* Issue #158: Update PHP config paths for Ubuntu 12.04.
This commit is contained in:
Jeff Geerling 2016-11-07 11:32:45 -06:00 committed by GitHub
parent e863c348c3
commit 0e8640e0ee
2 changed files with 18 additions and 19 deletions

View File

@ -1,23 +1,21 @@
---
php_version: "5.6"
php_packages:
- php5
- php5-mcrypt
- php5-cli
- php5-common
- php5-curl
- php5-dev
- php5-fpm
- php5-gd
- php-pear
- php5.6
- php5.6-mcrypt
- php5.6-cli
- php5.6-common
- php5.6-curl
- php5.6-dev
- php5.6-fpm
- php5.6-gd
- libpcre3-dev
php_conf_paths:
- /etc/php5/fpm
- /etc/php5/apache2
- /etc/php5/cli
- /etc/php/5.6/fpm
- /etc/php/5.6/apache2
- /etc/php/5.6/cli
php_extension_conf_paths:
- /etc/php5/fpm/conf.d
- /etc/php5/apache2/conf.d
- /etc/php5/cli/conf.d
php_fpm_daemon: php5-fpm
php_fpm_conf_path: "/etc/php5/fpm"
- /etc/php/5.6/fpm/conf.d
- /etc/php/5.6/apache2/conf.d
- /etc/php/5.6/cli/conf.d
php_fpm_daemon: php5.6-fpm
php_fpm_conf_path: "/etc/php/5.6/fpm"

View File

@ -5,6 +5,7 @@
php_enable_webserver: false
php_memory_limit: "192M"
php_enablerepo: "remi,remi-php70"
php_install_recommends: no
pre_tasks:
- name: Update apt cache.
@ -19,7 +20,7 @@
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version != '12.04'
- name: Add repository for PHP 5.6.
apt_repository: repo='ppa:ondrej/php5-5.6'
apt_repository: repo='ppa:ondrej/php'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
roles: