18 lines
704 B
Django/Jinja
18 lines
704 B
Django/Jinja
#jinja2: lstrip_blocks: True
|
|
{{ ansible_managed | comment }}
|
|
REDIS_ARGS=--timeout {{ redis_timeout }} --loglevel {{ redis_loglevel }} --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
|