Galaxy
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

redis

Source Code Build Status License: MIT

Setup Redis server.


Default Variables

redis_appendfsync

Default value

redis_appendfsync: everysec

redis_appendonly

Default value

redis_appendonly: no

redis_bind_interface

Default value

redis_bind_interface: 127.0.0.1

redis_conf_path

Default value

redis_conf_path: /etc/redis.conf

redis_daemon

Default value

redis_daemon: redis

redis_daemonize

Default value

redis_daemonize: no

redis_databases

Default value

redis_databases: 16

redis_dbdir

Can be used to change the redis dbdir path

Default value

redis_dbdir: /var/lib/redis

redis_dbfilename

Default value

redis_dbfilename: dump.rdb

redis_disabled_commands

Disable certain Redis commands for security reasons.

Default value

redis_disabled_commands: []

Example usage

redis_disabled_commands:
  - FLUSHDB
  - FLUSHALL
  - KEYS
  - PEXPIRE
  - DEL
  - CONFIG
  - SHUTDOWN
  - BGREWRITEAOF
  - BGSAVE
  - SAVE
  - SPOP
  - SREM
  - RENAME
  - DEBUG

redis_includes

Add extra include files for local configuration/overrides.

Default value

redis_includes: []

redis_logfile

Can be used to change the redis log file path

Default value

redis_logfile: /var/log/redis/redis.log

redis_loglevel

Default value

redis_loglevel: notice

redis_maxmemory

Default value

redis_maxmemory: 0

redis_maxmemory_policy

Default value

redis_maxmemory_policy: noeviction

redis_maxmemory_samples

Default value

redis_maxmemory_samples: 5

redis_packages

Define a list of packages to install. The default packages depend on the OS version.

redis_packages_extra

Can be used to install other dependency packages.

Default value

redis_packages_extra: []

redis_pidfile

Default value

redis_pidfile: /var/run/redis_{{ redis_port }}.pid

redis_port

Default value

redis_port: 6379

redis_rdbcompression

Default value

redis_rdbcompression: yes

redis_requirepass

Require authentication to Redis with a password.

Default value

redis_requirepass: _unset_

redis_save

Set to an empty set to disable persistence (saving the DB to disk).

Default value

redis_save:
  - 900 1
  - 300 10
  - 60 10000

redis_supervised

Default value

redis_supervised: no

redis_timeout

Default value

redis_timeout: 300

redis_unixsocket

Default value

redis_unixsocket: _unset_

Dependencies

None.