diff --git a/tasks/main.yml b/tasks/main.yml index a0ec123..ac7bf4b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -28,6 +28,7 @@ -- unit kiB {{ lookup('template','parted_flags_args.j2') }} with_items: "{{ hard_disks }}" + when: ( item.partitions | json_query("[].flags") | length ) > 0 - name: sync command: sync