18 lines
705 B
Plaintext
18 lines
705 B
Plaintext
|
#jinja2: lstrip_blocks: True
|
||
|
{{ ansible_managed | comment }}
|
||
|
REDIS_ARGS=--timeout {{ redis_timeout }} --loglevel {{ redis_log_level }} --databases {{ redis_databases }} \
|
||
|
{% for save in redis_save %}
|
||
|
--save '{{ save }}'\
|
||
|
{% endfor %}
|
||
|
--rdbcompression {{ redis_rdbcompression | bool | ternary("yes", "no") }} \
|
||
|
--appendonly {{ redis_appendonly | bool | ternary("yes", "no") }} \
|
||
|
--appendfsync {{ redis_appendfsync }} \
|
||
|
--no-appendfsync-on-rewrite no \
|
||
|
{% if redis_requirepass is defined %}
|
||
|
--requirepass {{ redis_requirepass }} \
|
||
|
{% endif %}
|
||
|
{% for command in redis_disabled_commands %}
|
||
|
--rename-command '{{ command }} ""' \
|
||
|
{% endfor %}
|
||
|
--port 6379
|