๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/redis/templates/redis.j2

9 lines
334 B

{% for option in (redis_cfg | d({}) | dict2items) -%}
{% if option.value is boolean -%}
{{ option.key }} {{ 'yes' if option.value else 'no' }}
{% elif option.value | type_debug == 'list' -%}
{{ option.key }} {{ option.value | join(' ') }}
{% else -%}
{{ option.key }} {{ option.value }}
{% endif -%}
{%- endfor %}