redis
Role to setup Redis server.
- Default Variables
- redis_appendfsync
- redis_appendonly
- redis_apt_cache_update
- redis_bind_interface
- 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_port
- redis_rdbcompression
- redis_requirepass
- redis_save
- redis_timeout
- redis_unixsocket
- Dependencies
redis_appendfsync: everysec
redis_appendonly: no
Automatically update apt cache on package installations. This setting will only applied on apt-based operating systems e.g. Ubuntu.
redis_apt_cache_update: false
redis_bind_interface: 127.0.0.1
redis_databases: 16
Can be used to change the redis dbdir path
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_loglevel: notice
redis_maxmemory: 0
redis_maxmemory_policy: noeviction
redis_maxmemory_samples: 5
Define a custom list of packages to install. Default value depends on your operating system.
redis_packages: _os_specific_
Can be used to install other dependency packages.
redis_packages_extra: []
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_timeout: 300
redis_unixsocket: _unset_
None.