Role Detail

geerlingguy.php-pecl

PHP PECL extension installation.
Downloads
25620
Type Ansible
Minimum Ansible Version 1.9
Installation $ ansible-galaxy install geerlingguy.php-pecl
Tags
development
web
Last Commit 2017-07-18 04:02:04 AM UTC
Last Imported 2017-11-14 04:12:04 AM UTC
Version History
Version Release Date
1.4.0 2017-07-18 04:02:04 AM
1.3.0 2016-11-07 19:24:07 PM
1.2.1 2016-02-29 05:40:05 AM
1.2.0 2016-02-29 05:39:05 AM
1.1.1 2015-08-13 20:16:08 PM
1.1.0 2015-01-20 15:32:03 PM
1.0.2 2014-09-27 04:14:04 AM
1.0.1 2014-09-27 03:37:03 AM
1.0.0 2014-03-05 15:10:03 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
Fedora 16
Fedora 17
Fedora 18
Fedora 19
Fedora 20
Fedora 21
Fedora 22
Fedora 23
Fedora 24
Fedora 25
Fedora 26
FreeBSD 10.0
FreeBSD 10.1
FreeBSD 10.2
FreeBSD 10.3
FreeBSD 11.0
FreeBSD 11.1
FreeBSD 8.0
FreeBSD 8.1
FreeBSD 8.2
FreeBSD 8.3
FreeBSD 8.4
FreeBSD 9.0
FreeBSD 9.1
FreeBSD 9.1
FreeBSD 9.2
FreeBSD 9.3
GenericBSD any
GenericLinux any
GenericUNIX any
opensuse 12.1
opensuse 12.2
opensuse 12.3
opensuse 13.1
opensuse 13.2
SLES 10SP3
SLES 10SP4
SLES 11
SLES 11SP1
SLES 11SP2
SLES 11SP3
SLES 11SP4
SLES 12
SLES 12SP1
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Dependencies
Role
Last 10 Imports
Completed Status
2017-11-14 04:12:04 AM UTC SUCCESS
2017-11-07 04:11:04 AM UTC SUCCESS
2017-10-31 05:00:05 AM UTC SUCCESS
2017-10-24 04:12:04 AM UTC SUCCESS
2017-10-17 04:10:04 AM UTC SUCCESS
2017-10-10 04:09:04 AM UTC SUCCESS
2017-10-03 04:10:04 AM UTC SUCCESS
2017-09-26 04:08:04 AM UTC SUCCESS
2017-09-19 04:07:04 AM UTC SUCCESS
2017-09-14 13:43:01 PM UTC SUCCESS

Ansible Role: PHP PECL extensions

Build Status

Installs PHP PECL extensions (and optionally pecl itself) on servers with PHP already installed.

Requirements

PHP must already be installed on the server. This role works great with and is tested alongside geerlingguy.php.

Also, if you don't already have php-pear (RedHat) or php-pecl (Debian) installed, you should set php_pecl_install_pecl: true to force this role to install the proper package.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

php_pecl_install_pecl: false

Whether to install php-pecl (Debian-based OSes) or php-pear (RedHat-based OSes).

php_pecl_install_command: "pecl install"

The command that will be run to install extensions. The default is generally correct, but if you're running Ubuntu 14.04 LTS and run into this issue, you should override this default with "pecl install -Z"

php_pecl_extensions: []

A list of extensions that should be installed via pecl install. If you'd like to have this role install extensions like XDebug, just add it in the list, like so:

php_pecl_extensions:
  - redis
  - xdebug

Dependencies

  • geerlingguy.php

Example Playbook

- hosts: webservers
  vars_files:
    - vars/main.yml
  roles:
    - geerlingguy.php-pecl

Inside vars/main.yml:

php_pecl_extensions:
  - redis
  - xdebug

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

None