mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-08-21 22:33:08 +02:00
21 lines
510 B
YAML
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
|