Role Detail

geerlingguy.php-redis

PhpRedis support for Linux
Downloads
17982
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.php-redis
Tags
database
web
Last Commit 2017-04-02 14:52:02 PM UTC
Last Imported 2017-04-02 15:09:03 PM UTC
Version History
Version Release Date
3.1.0 2016-12-10 04:38:04 AM
3.0.0 2016-05-12 14:14:02 PM
2.0.0 2016-03-07 02:26:02 AM
1.1.0 2016-03-06 22:06:10 PM
1.0.1 2015-12-13 04:40:04 AM
1.0.0 2015-12-12 22:50:10 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
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
Dependencies
Role
Last 10 Imports
Completed Status
2017-04-02 15:09:03 PM UTC SUCCESS
2017-01-22 03:48:03 AM UTC SUCCESS
2016-12-15 14:47:02 PM UTC SUCCESS
2016-12-10 04:45:04 AM UTC SUCCESS
2016-12-10 04:43:04 AM UTC SUCCESS
2016-12-10 04:41:04 AM UTC SUCCESS
2016-12-10 03:51:03 AM UTC SUCCESS
2016-12-10 03:50:03 AM UTC SUCCESS
2016-12-10 03:08:03 AM UTC SUCCESS
2016-12-10 03:01:03 AM UTC SUCCESS

Ansible Role: PhpRedis

Build Status

Installs PhpRedis support on Linux.

Requirements

This role doesn't explicitly require Redis to be installed, but if you don't have the daemon running somewhere (either on the same server, or somewhere else), this role won't be all that helpful. Check out geerlingguy.redis for a simple role to install and configure Redis (either on the same server, or separate servers).

Role Variables

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

php_enablerepo: ""

(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. remi,epel). This can be handy, as an example, if you want to install the latest version of PHP from Remi's repository.

php_redis_package: php-redis

(Default for Debian/Ubuntu shown). If installing from apt or yum, which package to install which provides the PhpRedis extension. (For PHP 5.x on Debian, this should be php5-redis).

Install from source

If you want to install PhpRedis directly from source (if you're on an OS that doesn't have it available as a package, or if you want a newer version than is available through your package manager), you can use the variables below to configure the source installation:

php_redis_install_from_source: false

Whether to install PhpRedis from source. If you'd like to install a specific version of PhpRedis not available via the system package manager, you can compile the extension from source.

php_redis_source_repo: https://github.com/phpredis/phpredis.git

The git repository for the PhpRedis extension.

php_redis_source_version: develop

The branch, tag, or commit hash to use when cloning the source repository. Can be a branch (e.g. develop or php7), a tag (e.g. 2.2.7), or a commit hash (e.g. 5241a5c).

php_redis_source_clone_dir: ~/phpredis

The location where the PhpRedis source code will be cloned locally.

php_redis_source_configure_command: "./configure"

The command to configure a PhpRedis source install. You can modify this command if you want to do something like add --enable-redis-igbinary.

Dependencies

  • geerlingguy.php

Example Playbook

- hosts: webservers
  roles:
    - { role: geerlingguy.php-redis }

License

MIT / BSD

Author Information

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

None