mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-15 10:35:11 +01:00
0e8640e0ee
* 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.
30 lines
896 B
YAML
30 lines
896 B
YAML
---
|
|
- hosts: all
|
|
|
|
vars:
|
|
php_enable_webserver: false
|
|
php_memory_limit: "192M"
|
|
php_enablerepo: "remi,remi-php70"
|
|
php_install_recommends: no
|
|
|
|
pre_tasks:
|
|
- name: Update apt cache.
|
|
apt: update_cache=yes
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
- include_vars: test-vars-ubuntu1204.yml
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
|
|
|
- name: Add repository for PHP 7.
|
|
apt_repository: repo='ppa:ondrej/php'
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version != '12.04'
|
|
|
|
- name: Add repository for PHP 5.6.
|
|
apt_repository: repo='ppa:ondrej/php'
|
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
|
|
|
|
roles:
|
|
- role: geerlingguy.repo-remi
|
|
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
|
|
- role_under_test
|