ansible/roles/cryptoraid/templates/dmcrypt_block.j2

12 lines
279 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 %}
{% endfor %}