ansible-role-php/tests/test.yml

29 lines
914 B
YAML
Raw Normal View History

2016-02-16 17:25:40 +01:00
---
- hosts: all
vars:
php_enable_webserver: false
php_memory_limit: "192M"
php_enablerepo: "remi,remi-php70"
2016-02-16 17:25:40 +01:00
pre_tasks:
- include_vars: test-vars-ubuntu1204.yml
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
2016-02-16 17:25:40 +01:00
- name: Ensure build dependencies are installed (RedHat).
2016-09-18 01:42:47 +02:00
package: name=which state=present
2016-02-16 17:25:40 +01:00
when: ansible_os_family == 'RedHat'
- 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/php5-5.6'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '12.04'
2016-02-16 22:59:49 +01:00
2016-02-16 17:25:40 +01:00
roles:
- role: geerlingguy.repo-remi
2016-09-18 01:42:47 +02:00
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
2016-02-16 17:25:40 +01:00
- role_under_test