mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Update Ubuntu 12.04 variables to fix broken tests.
This commit is contained in:
parent
27f739d3b9
commit
da71d1b360
@ -34,7 +34,7 @@ env:
|
||||
init: /sbin/init
|
||||
run_opts: ""
|
||||
SITE: package
|
||||
PHP_VERSION: 7.0
|
||||
PHP_VERSION: 5.6
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
@ -7,29 +7,22 @@
|
||||
php_enablerepo: "remi,remi-php70"
|
||||
|
||||
pre_tasks:
|
||||
- include_vars: test-vars-ubuntu1204.yml
|
||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
||||
|
||||
- name: Ensure build dependencies are installed (RedHat).
|
||||
yum: name=which state=present
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Add repository for PHP 7.
|
||||
apt_repository: repo='ppa:ondrej/php'
|
||||
when: ansible_os_family == 'Debian'
|
||||
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'
|
||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
||||
|
||||
- name: Override package list manually for Ubuntu 12.04.
|
||||
set_fact:
|
||||
php_packages:
|
||||
- php7.0-common
|
||||
- php7.0-cli
|
||||
- php7.0-dev
|
||||
- php7.0-fpm
|
||||
- libpcre3-dev
|
||||
- php7.0-gd
|
||||
- php7.0-curl
|
||||
- php7.0-imap
|
||||
- php7.0-json
|
||||
- php7.0-opcache
|
||||
- php7.0-xml
|
||||
- php7.0-mbstring
|
||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
||||
|
||||
roles:
|
||||
|
23
tests/test-vars-ubuntu1204.yml
Normal file
23
tests/test-vars-ubuntu1204.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
php_version: "5.6"
|
||||
php_packages:
|
||||
- php5
|
||||
- php5-mcrypt
|
||||
- php5-cli
|
||||
- php5-common
|
||||
- php5-curl
|
||||
- php5-dev
|
||||
- php5-fpm
|
||||
- php5-gd
|
||||
- php-pear
|
||||
- libpcre3-dev
|
||||
php_conf_paths:
|
||||
- /etc/php5/fpm
|
||||
- /etc/php5/apache2
|
||||
- /etc/php5/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"
|
Loading…
Reference in New Issue
Block a user