From dd669c8f6fc44fb793ffe3921097721eee275aa3 Mon Sep 17 00:00:00 2001 From: Baptiste Mille-Mathias Date: Tue, 19 Feb 2019 19:52:37 +0100 Subject: [PATCH] use loop instead of with_items (#47231) --- lib/ansible/modules/system/crypttab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/crypttab.py b/lib/ansible/modules/system/crypttab.py index 41dcf8829e2..d976dbdc2da 100644 --- a/lib/ansible/modules/system/crypttab.py +++ b/lib/ansible/modules/system/crypttab.py @@ -73,7 +73,7 @@ EXAMPLES = r''' name: '{{ item.device }}' state: opts_present opts: discard - with_items: '{{ ansible_mounts }}' + loop: '{{ ansible_mounts }}' when: "'/dev/mapper/luks-' in {{ item.device }}" '''