redis
Setup Redis server.
- Default Variables
- redis_appendfsync
- redis_appendonly
- redis_bind_interface
- redis_conf_path
- redis_daemon
- redis_daemonize
- redis_databases
- redis_dbdir
- redis_dbfilename
- redis_disabled_commands
- redis_includes
- redis_logfile
- redis_loglevel
- redis_maxmemory
- redis_maxmemory_policy
- redis_maxmemory_samples
- redis_packages
- redis_packages_extra
- redis_pidfile
- redis_port
- redis_rdbcompression
- redis_requirepass
- redis_save
- redis_supervised
- redis_timeout
- redis_unixsocket
- Dependencies
redis_appendfsync: everysec
redis_appendonly: no
redis_bind_interface: 127.0.0.1
redis_conf_path: /etc/redis.conf
redis_daemon: redis
redis_daemonize: no
redis_databases: 16
Can be used to change the redis dbdir path
redis_dbdir: /var/lib/redis
redis_dbfilename: dump.rdb
Disable certain Redis commands for security reasons.
redis_disabled_commands: []
redis_disabled_commands:
- FLUSHDB
- FLUSHALL
- KEYS
- PEXPIRE
- DEL
- CONFIG
- SHUTDOWN
- BGREWRITEAOF
- BGSAVE
- SAVE
- SPOP
- SREM
- RENAME
- DEBUG
Add extra include files for local configuration/overrides.
redis_includes: []
Can be used to change the redis log file path
redis_logfile: /var/log/redis/redis.log
redis_loglevel: notice
redis_maxmemory: 0
redis_maxmemory_policy: noeviction
redis_maxmemory_samples: 5
Define a list of packages to install. The default packages depend on the OS version.
Can be used to install other dependency packages.
redis_packages_extra: []
redis_pidfile: /var/run/redis_{{ redis_port }}.pid
redis_port: 6379
redis_rdbcompression: yes
Require authentication to Redis with a password.
redis_requirepass: _unset_
Set to an empty set to disable persistence (saving the DB to disk).
redis_save:
- 900 1
- 300 10
- 60 10000
redis_supervised: no
redis_timeout: 300
redis_unixsocket: _unset_
None.