im_mortal.trellis_redis
Trellis Redis
Ansible role to set up Redis on Trellis servers.
This role works with Trellis. It installs Redis and the PECL php-redis extension on your server.
Getting Started
First, add the role to the galaxy.yml
file in Trellis:
- name: trellis-redis
src: im_mortal.trellis_redis
version: 0.3.2
Next, run ansible-galaxy install -r galaxy.yml
to install the role.
Then, include the role in both server.yml
and dev.yml
:
roles:
... other Trellis roles ...
- { role: trellis-redis, tags: [redis]}
After adding the role to these files and installing it, provision your Vagrant box with vagrant reload --provision
(if it's running) or vagrant provision
(if it's not).
If you haven't set up the box yet, just run vagrant up
or trellis up
if you have trellis-cli installed.