Skip to content

Commit 4563a9e

Browse files
committed
Use EPEL for installation.
1 parent 550b406 commit 4563a9e

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ Installs PhpRedis support on Linux.
88

99
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).
1010

11+
On newer RHEL systems, you should also install EPEL (I use the `geerlingguy.repo-epel` role to install this).
12+
1113
## Role Variables
1214

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

15-
php_enablerepo: ""
17+
php_enablerepo: epel
1618

1719
(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.
1820

1921
php_redis_package: php-redis
2022

21-
(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`).
23+
(Default for Debian/Ubuntu shown). If installing from apt or yum, which package to install which provides the PhpRedis extension.
2224

2325
### Install from source
2426

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# Pass in a comma-separated list of repos to use (e.g. "remi,epel").
3-
php_enablerepo: ""
3+
php_enablerepo: epel
44

55
# Whether to install the extension from source or from an apt or yum repo.
66
php_redis_install_from_source: false

molecule/default/converge.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55

66
vars:
77
php_enable_webserver: false
8-
php_enablerepo: "remi,remi-php82"
8+
php_enablerepo: "epel,remi,remi-php82"
99

1010
pre_tasks:
1111
- name: Update apt cache.
1212
apt: update_cache=yes cache_valid_time=600
1313
when: ansible_os_family == 'Debian'
1414

1515
roles:
16+
- role: geerlingguy.repo-epel
17+
when: ansible_os_family == 'RedHat'
1618
- role: geerlingguy.repo-remi
1719
when: ansible_os_family == 'RedHat'
1820
- role: geerlingguy.redis

molecule/default/requirements.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
- src: geerlingguy.repo-epel
23
- src: geerlingguy.repo-remi
34
- src: geerlingguy.redis
45
- src: geerlingguy.php

0 commit comments

Comments
 (0)