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

redis

Source Code Build Status GitHub

Role to setup Redis server.


Default Variables

redis_appendfsync

Default value

redis_appendfsync: everysec

redis_appendonly

Default value

redis_appendonly: no

redis_apt_cache_update

Automatically update apt cache on package installations. This setting will only applied on apt-based operating systems e.g. Ubuntu.

Default value

redis_apt_cache_update: false

redis_bind_interface

Default value

redis_bind_interface: 127.0.0.1

redis_databases

Default value

redis_databases: 16

redis_dbdir

Can be used to change the redis dbdir path

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

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 custom list of packages to install. Default value depends on your operating system.

Default value

redis_packages: _os_specific_

redis_packages_extra

Can be used to install other dependency packages.

Default value

redis_packages_extra: []

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_timeout

Default value

redis_timeout: 300

redis_unixsocket

Default value

redis_unixsocket: _unset_

Dependencies

None.