9 lines
439 B
Django/Jinja
9 lines
439 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% set root = luks_crypttab.root -%}
|
|
{% set root_opts = ["luks", root.options|default([])] | flatten -%}
|
|
{{ root.name }} UUID={{ root.uuid }} none {{ root_opts|join(",") }}
|
|
{% for item in luks_crypttab.disks|default([]) -%}
|
|
{% set item_opts = ["luks", item.options|default([])] | flatten -%}
|
|
{{ item.name }} UUID={{ item.uuid }} {{ item.keyfile | default(luks_keyfile) }} {{ item_opts | join(",") }}
|
|
{% endfor %}
|