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 }}" '''