From c41465cb7438f159a4448eed25bfdc5aefe399a9 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 21:29:44 +0000 Subject: [PATCH] [PR #10081/8222f1f0 backport][stable-8] [stable-9] crypttab: removes jijna delimiters from example using when (#10079) (#10082) [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) (cherry picked from commit 8222f1f0647a2cefb625180db374f17cbd3bef31) Signed-off-by: Abhijeet Kasurde Co-authored-by: Felix Fontein 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