diff --git a/lib/ansible/modules/system/parted.py b/lib/ansible/modules/system/parted.py index fdae37f339c..439fd21a48d 100644 --- a/lib/ansible/modules/system/parted.py +++ b/lib/ansible/modules/system/parted.py @@ -184,8 +184,7 @@ EXAMPLES = r''' device: /dev/sdb number: '{{ item.num }}' state: absent - with_items: - - '{{ sdb_info.partitions }}' + loop: '{{ sdb_info.partitions }}' '''