From 14b69130b36fa030aa59372bc6bb922fc28f2fd2 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Tue, 4 Aug 2020 02:33:12 +0200 Subject: [PATCH] crypttab fully configurable --- templates/crypttab.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/crypttab.j2 b/templates/crypttab.j2 index eeb8779..930e951 100644 --- a/templates/crypttab.j2 +++ b/templates/crypttab.j2 @@ -1,3 +1,6 @@ +{{ansible_managed|comment}} + +# {% for cryptdev in dmcrypt_devices %} -{{ cryptdev.name }} {{ cryptdev.device }} none luks{{ cryptdev.discard | default(false) | ternary(',discard','') }} +{{ cryptdev.name }} {{ cryptdev.device }} {{ cryptdev.password | default('none') }} {{ cryptdev.options | default('luks') }} {% endfor %}