ansible-role-php/tests/test-package.yml
2016-02-16 22:08:11 -05:00

21 lines
510 B
YAML

---
- hosts: all
vars:
php_enable_webserver: false
php_version: 5.6
php_enablerepo: "remi,remi-php56"
pre_tasks:
- name: Ensure build dependencies are installed (RedHat).
yum: name=which state=present
when: ansible_os_family == 'RedHat'
- name: Add repository for PHP 5.6.
apt_repository: repo='ppa:ondrej/php5-5.6'
when: ansible_os_family == 'Debian'
roles:
- { role: geerlingguy.repo-remi, when: ansible_os_family == 'RedHat' }
- role_under_test