From 8222f1f0647a2cefb625180db374f17cbd3bef31 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 29 Apr 2025 23:14:40 +0200 Subject: [PATCH] [stable-9] crypttab: removes jijna delimiters from example using when (#10079) (#10081) crypttab: removes jijna delimiters from example using when (#10079) The current example includes extra jinja delimiters which result in double-interpretation of the statement. Fixes: #10078 (cherry picked from commit 1936fe5181f970d18d24b6165165e854f3b30a77) Signed-off-by: Abhijeet Kasurde Co-authored-by: Abhijeet Kasurde --- plugins/modules/crypttab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/crypttab.py b/plugins/modules/crypttab.py index 931a0c930b..ea93a97c66 100644 --- a/plugins/modules/crypttab.py +++ b/plugins/modules/crypttab.py @@ -77,7 +77,7 @@ EXAMPLES = r''' state: opts_present opts: discard loop: '{{ ansible_mounts }}' - when: "'/dev/mapper/luks-' in {{ item.device }}" + when: "'/dev/mapper/luks-' in item.device" ''' import os