mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
21
roles/redis_server/templates/redis.conf.j2
Normal file
21
roles/redis_server/templates/redis.conf.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
daemonize no
|
||||
pidfile /var/run/redis/redis.pid
|
||||
port {{ redis_port }}
|
||||
tcp-backlog 511
|
||||
bind {{ redis_ip | join(' ') }}
|
||||
timeout {{ redis_timeout }}
|
||||
tcp-keepalive {{ redis_tcp_keepalive }}
|
||||
loglevel notice
|
||||
logfile ""
|
||||
databases {{ redis_databases }}
|
||||
save 900 1
|
||||
save 300 10
|
||||
save 60 10000
|
||||
stop-writes-on-bgsave-error yes
|
||||
dbfilename dump.rdb
|
||||
dir /var/lib/redis/
|
||||
{% if redis_pass is defined %}
|
||||
requirepass {{ redis_pass }}
|
||||
{% endif %}
|
Reference in New Issue
Block a user