ansible/roles/cryptoraid/templates/dmcrypt_block.j2

14 lines
358 B
Django/Jinja

{% for entry in dmcrypt_targets %}
# {{ entry.name }}
target='{{ entry.target }}'
source='/dev/disk/by-uuid/{{ entry.source_uuid }}'
{% if entry.key is defined %}key='{{ entry.key }}'
{% endif %}
{% if entry.remdev is defined %}remdev='{{ entry.remdev }}'
{% endif %}
{% if entry.options is defined %}options='{{ entry.options }}'
{% endif %}
{% endfor %}