Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.48 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.48 KB

Ansible Role: redis

This role will assume the setup of redis.

It's part of the ELAO Ansible stack but can be used as a stand alone component.

Requirements

  • Ansible 1.7.2+

Dependencies

None.

Installation

Using ansible galaxy:

ansible-galaxy install elao.redis

You can add this role as a dependency for other roles by adding the role to the meta/main.yml file of your own role:

dependencies:
  - { role: elao.redis }

Role Handlers

Name Type Description
redis restart Service Restart redis server

Role Variables

Name Default Type Description
elao_redis_config_file /etc/redis/redis.conf string Redis config file path.
elao_redis_config_template ~ string
elao_redis_config [] array Redis config directives.

Configuration example

elao_redis_config:
  - bind: "127.0.0.1 {{ ansible_venet0_0.ipv4.address}}"

Example playbook

- hosts: servers
  roles:
     - { role: elao.redis }

Licence

MIT

Author information

ELAO (http://www.elao.com/)